diff --git a/application/Espo/Core/Utils/Util.php b/application/Espo/Core/Utils/Util.php index 89630dffeb..f9f7a83320 100644 --- a/application/Espo/Core/Utils/Util.php +++ b/application/Espo/Core/Utils/Util.php @@ -159,7 +159,7 @@ class Util if ($appendKey !== false) { unset($newValue[$appendKey]); $newValue = array_merge($currentArray[$newName], $newValue); - } else if (!static::isSingleArray($newValue)) { + } else if (!static::isSingleArray($newValue) || !static::isSingleArray($currentArray[$newName])) { $newValue = static::merge($currentArray[$newName], $newValue); }