diff --git a/src/helpers/DataHelper.php b/src/helpers/DataHelper.php index b7ffa7e3..a19c1da1 100644 --- a/src/helpers/DataHelper.php +++ b/src/helpers/DataHelper.php @@ -174,6 +174,12 @@ public static function compareElementContent($content, $element) $newValue = null; } + // If arrays of values, sort them to help comparison + if (is_array($existingValue) && is_array($newValue)) { + sort($existingValue); + sort($newValue); + } + // Check for simple fields first if ($existingValue == $newValue) { unset($trackedChanges[$key]);