MDL-84899 mod_forum: Fix summary report form change checker

* The forum summary report was not removing the right form
from the list of forms to check for changes.
This commit is contained in:
Laurent David
2025-05-09 08:43:54 +02:00
parent 5c2095cb12
commit f5b15b044e
3 changed files with 3 additions and 4 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -2
View File
@@ -131,8 +131,7 @@ export const init = (root) => {
// Submit report via filter
const submitWithFilter = (containerelement) => {
// Disable the dates filter mform checker to prevent any changes triggering a warning to the user.
FormChangeChecker.unWatchForm(document.forms.filtersform);
FormChangeChecker.unWatchForm(document.querySelector(containerelement).querySelector('form'));
// Close the container (eg popover).
$(containerelement).addClass('hidden');