Skip to content

Commit a2879c1

Browse files
committed
should fix #6658 - prevent change only policy_name to trigger all policy user rewritten
1 parent cbea27e commit a2879c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

interface/web/mail/spamfilter_policy_edit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ function onSubmit() {
9393
function onAfterUpdate() {
9494
$this->record_has_changed = false;
9595
foreach($this->dataRecord as $key => $val) {
96+
if ($key == 'policy_name') { continue; } // Don't trigger update of all spamfilter users if only policy_name is changed
9697
if(isset($this->oldDataRecord[$key]) && @$this->oldDataRecord[$key] != $val) {
9798
// Record has changed
9899
$this->record_has_changed = true;

0 commit comments

Comments
 (0)