-
Bug
-
Resolution: Fixed
-
Minor
-
2.7.9, 2.8.7, 2.9
-
MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
-
MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
-
MDL-50852-master -
-
Team ';drop tables Sprint 10
-
Medium
Client side Form validation does not work in forms with short forms disabled
Create a form that has either no collapsible elements or has $mform->setDisableShortforms(true);
Try use client side validation, it will cause 100's of errors in the console and submit anyway
Cause: When short forms are disabled, or there are no collapisble elements and therefore shortforms are not required the shortform.js is not included. The shortform.js has the function that handles the event , for some reason when registering the event when the function doesnt exist causes yui to go nuts.
Solution: Dont register the global event handlers, when the events are fired when shortform.js is included it registers itself as a watcher
- is a regression caused by
-
MDL-49783 Form does not get focus when error field is in collapsed section
- Closed