We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48ed2b7 commit d24b072Copy full SHA for d24b072
application/forms/EventRuleConfigForm.php
@@ -657,6 +657,15 @@ public function getChanges(): array
657
$values = $this->getValues();
658
$dbValuesToCompare = array_intersect_key($this->config, $values);
659
660
+ if (count($values, COUNT_RECURSIVE) < count($dbValuesToCompare, COUNT_RECURSIVE)) {
661
+ // fewer values in the form than in the db, escalation(s) has been removed
662
+ if ($values['object_filter'] === $dbValuesToCompare['object_filter']) {
663
+ unset($values['object_filter']);
664
+ }
665
+
666
+ return $values;
667
668
669
$checker = static function ($a, $b) use (&$checker) {
670
if (! is_array($a) || ! is_array($b)) {
671
return $a <=> $b;
0 commit comments