Closed marcestone closed 2 months ago
Hi @marcestone,
The call is conditional on the Moodle version and should not be used since Moodle 4.0.
if ($CFG->branch >= 400) {
$this->page->requires->js_call_amd('core_form/changechecker', 'watchFormById', [$formid]);
} else {
...
$this->page->requires->yui_module('moodle-core-formchangechecker', 'M.core_formchangechecker.init',
[['formid' => $formid]]);
}
I am closing this issue as it does not appear to be a bug, would you please provide replication steps if it is.
Thank you!
In
/renderer.php
there is a call tomoodle-core-formchangechecker
. That YUI module was deleted in MDL-72308. This can be fixed replacing that call as the following code:--- $this->page->requires->yui_module('moodle-core-formchangechecker', 'M.core_formchangechecker.init',[['formid' => $formid]]);
+++ $this->page->requires->js_call_amd('core_form/changechecker', 'watchFormById', [$formid]);