diff --git a/src/helpers/DataHelper.php b/src/helpers/DataHelper.php index 7f2a7a51..57b1ed15 100644 --- a/src/helpers/DataHelper.php +++ b/src/helpers/DataHelper.php @@ -264,6 +264,12 @@ public static function compareElementContent($content, $element) $newValue = null; } + // If array key & values are already within the existing array + if (is_array($newValue) && is_array($existingValue) && Hash::contains($existingValue,$newValue)) { + unset($trackedChanges[$key]); + continue; + } + // Check for simple fields first if (self::_compareSimpleValues($fields, $key, $existingValue, $newValue)) { unset($trackedChanges[$key]);