From 2e975de3edd1c6ec9e0434fe9b2e005d316c79b4 Mon Sep 17 00:00:00 2001 From: Neill Magill Date: Tue, 18 Jun 2024 08:52:57 +0100 Subject: [PATCH] MDL-82214 admin: Settings should not change when in read only mode Before this change if some settings were: * read only * visible on a settings page * are set or have values selected when the settings page was saved the setting would be set tobe empty, because the hidden input remained on the page, while the other inputs where not posted to Moodle. --- admin/templates/setting_configcheckbox.mustache | 2 +- admin/templates/setting_configmulticheckbox.mustache | 2 +- admin/templates/setting_configmultiselect.mustache | 2 +- admin/templates/setting_configmultiselect_optgroup.mustache | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/templates/setting_configcheckbox.mustache b/admin/templates/setting_configcheckbox.mustache index 48e0471ee2722..8efecf36f10b6 100644 --- a/admin/templates/setting_configcheckbox.mustache +++ b/admin/templates/setting_configcheckbox.mustache @@ -38,6 +38,6 @@ } }}
- + {{^readonly}}{{/readonly}}
diff --git a/admin/templates/setting_configmulticheckbox.mustache b/admin/templates/setting_configmulticheckbox.mustache index a14172ea66478..4eaa69eee1a2f 100644 --- a/admin/templates/setting_configmulticheckbox.mustache +++ b/admin/templates/setting_configmulticheckbox.mustache @@ -35,7 +35,7 @@ } }}
- + {{^readonly}}{{/readonly}} {{#hasoptions}}