Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3.2, 2.4
-
MOODLE_23_STABLE, MOODLE_24_STABLE
-
MOODLE_23_STABLE
-
-
Description
At some point core_formchangechecker module was added to all forms in Moodle.
And it's great, but for some old/legacy/contrib forms still performing multiple submits and not fully migrated to have pure js alternatives (nested elements... actions at distance...).
Right now it's really hacky to disable such core_formchangechecker from a given form:
- Use the "ignoredirty" class at field level (does not work at form level and it's imperfect coz does not mark the form as submitted apparently.
- Hack all the submit calls, prepending "M.core_formchangechecker.set_form_submitted()" hacky.
- Overwrite some core stuff or hack it to avoid the inclusion of the module.
All them imperfect, dirty, hacky.
So it would be great to have some documented way to simply skip the use of the module in a form programatically. Say, supporting the "ignoredirty" at form level (module conditionally included based on that...) or whatever.
Ciao