Skip to content

Commit

Permalink
Merge pull request cypht-org#1179 from Baraka24/warn_for_unsaved_chan…
Browse files Browse the repository at this point in the history
…ges-once-set-cannot-be-unset

[FIX]Site Settings/General/:Warn for Unsaved Changes parameter once set cannot be unset
  • Loading branch information
Shadow243 authored Aug 22, 2024
2 parents 2827438 + bfeb479 commit 25707d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/handler_modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 25707d6

Please sign in to comment.