From a2879c114c8e60b204ebaa4ffd565938d7b764e3 Mon Sep 17 00:00:00 2001 From: Johannes Koschier Date: Thu, 29 Feb 2024 18:42:04 +0000 Subject: [PATCH] should fix #6658 - prevent change only policy_name to trigger all policy user rewritten --- interface/web/mail/spamfilter_policy_edit.php | 1 + 1 file changed, 1 insertion(+) diff --git a/interface/web/mail/spamfilter_policy_edit.php b/interface/web/mail/spamfilter_policy_edit.php index e8dd7f7473..18d31beddd 100644 --- a/interface/web/mail/spamfilter_policy_edit.php +++ b/interface/web/mail/spamfilter_policy_edit.php @@ -93,6 +93,7 @@ class page_action extends tform_actions { function onAfterUpdate() { $this->record_has_changed = false; foreach($this->dataRecord as $key => $val) { + if ($key == 'policy_name') { continue; } // Don't trigger update of all spamfilter users if only policy_name is changed if(isset($this->oldDataRecord[$key]) && @$this->oldDataRecord[$key] != $val) { // Record has changed $this->record_has_changed = true; -- GitLab