Commit 0310509c authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FIX #18428 TIME 0:20 fix communication means format in get contacts by resId

parent 4004253f
......@@ -1505,7 +1505,7 @@ class ContactController
if (!empty($contactRaw['communication_means'])) {
$communicationMeans = json_decode($contactRaw['communication_means'], true);
$contact['communicationMeans'] = $communicationMeans['url'] ?? $communicationMeans['email'];
$contact['communicationMeans'] = !empty($communicationMeans) ? $communicationMeans : null;
}
$filling = ContactController::getFillingRate(['contactId' => $resourceContact['item_id']]);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment