MDL-9524 - Formslib gets confused if a required field is frozen. Merged from MOODLE_18_STABLE.

This commit is contained in:
tjhunt 2007-04-23 16:19:25 +00:00
parent fe6480283c
commit 7c77033fb6

View file

@ -1056,6 +1056,11 @@ class MoodleQuickForm extends HTML_QuickForm_DHTMLRulesTableless {
}
}
}
// Fix for MDL-9524. If you don't do this, then $element may be left as a reference to one of the fields in
// the form, and then that form field gets corrupted by the code that follows.
unset($element);
$js = '
<script type="text/javascript">
//<![CDATA[