Skip to content
Snippets Groups Projects
Commit 088c842a authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FIX #11282 TIME 0:10 merge custom fields json decoded

parent 35237024
No related branches found
No related tags found
No related merge requests found
......@@ -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'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment