mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-9524 - Formslib gets confused if a required field is frozen. Merged from MOODLE_18_STABLE.
This commit is contained in:
parent
fe6480283c
commit
7c77033fb6
1 changed files with 5 additions and 0 deletions
|
@ -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[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue