diff --git a/src/app/contentManagement/controllers/MergeController.php b/src/app/contentManagement/controllers/MergeController.php index 8d775dbad9494555e877c66b4dc5673979e991c9..76ddac652a7ce99a7b08fe05317036c3586c197f 100644 --- a/src/app/contentManagement/controllers/MergeController.php +++ b/src/app/contentManagement/controllers/MergeController.php @@ -270,7 +270,13 @@ class MergeController 'orderBy' => ['value'] ]); foreach ($customs as $custom) { - $customField[$custom['custom_field_id']] = $custom['value']; + $decoded = json_decode($custom['value']); + + if (is_array($decoded)) { + $customField[$custom['custom_field_id']] = implode("\n", $decoded); + } else { + $customField[$custom['custom_field_id']] = $decoded; + } } } else { if (!empty($args['customFields'])) {