From bfeb479ddbb2ed1c0e357484364533db49ee9f98 Mon Sep 17 00:00:00 2001 From: Baraka Kinywa Date: Sun, 18 Aug 2024 09:07:01 +0200 Subject: [PATCH] [FIX]Site Settings/General/:Warn for Unsaved Changes parameter once set cannot be unset --- modules/core/handler_modules.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/handler_modules.php b/modules/core/handler_modules.php index 8d4b36c2d1..c4989d9ea2 100644 --- a/modules/core/handler_modules.php +++ b/modules/core/handler_modules.php @@ -974,7 +974,7 @@ public function process() { function warn_for_unsaved_changes_callback($val) { return $val; } - process_site_setting('warn_for_unsaved_changes', $this, 'warn_for_unsaved_changes_callback'); + process_site_setting('warn_for_unsaved_changes', $this, 'warn_for_unsaved_changes_callback', false, true); } }