From a48a9174778d79569acb687bb919ee6b17194556 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Mon, 19 Apr 2021 09:56:31 +0800 Subject: [PATCH] MDL-71369 admin: Apply form change checker to admin/category view --- admin/category.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/admin/category.php b/admin/category.php index 9bfa2bbab66c8..9cd3aba101624 100644 --- a/admin/category.php +++ b/admin/category.php @@ -158,4 +158,9 @@ echo html_writer::end_tag('fieldset'); echo html_writer::end_tag('form'); +$PAGE->requires->yui_module('moodle-core-formchangechecker', 'M.core_formchangechecker.init', [[ + 'formid' => 'adminsettings' +]]); +$PAGE->requires->string_for_js('changesmadereallygoaway', 'moodle'); + echo $OUTPUT->footer();