Skip to content

Commit

Permalink
583 Fix M.core_formchangechecker is undefined
Browse files Browse the repository at this point in the history
Migrate moodle-core-formchangechecker to core_form/changechecker as the
former was removed in Moodle 4.3.3 (MDL-72308).
  • Loading branch information
leonstr committed Aug 22, 2024
1 parent 6253d1a commit 51fc3bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion module.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ M.mod_questionnaire = M.mod_questionnaire || {};
/* exported Y */
/* exported e */
M.mod_questionnaire.init_attempt_form = function() {
M.core_formchangechecker.init({formid: 'phpesp_response'});
require(['core_form/changechecker'], function(FormChangeChecker) {
FormChangeChecker.watchFormById('phpesp_response');
});
};

M.mod_questionnaire.init_sendmessage = function(Y) {
Expand Down

0 comments on commit 51fc3bd

Please sign in to comment.