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

FEAT #12072 TIME 0:10 fix emails elements in json

parent 9c1dfa9a
No related branches found
No related tags found
No related merge requests found
......@@ -319,6 +319,14 @@ class EmailController
$emails = EmailModel::get(['select' => ['*'], 'where' => ['document->>\'id\' = ?'], 'data' => [$args['resId']], 'limit' => (int)$queryParams['limit']]);
foreach ($emails as $key => $email) {
$emails[$key]['sender'] = json_decode($emails[$key]['sender']);
$emails[$key]['recipients'] = json_decode($emails[$key]['recipients']);
$emails[$key]['cc'] = json_decode($emails[$key]['cc']);
$emails[$key]['cci'] = json_decode($emails[$key]['cci']);
$emails[$key]['document'] = json_decode($emails[$key]['document']);
}
return $response->withJson(['emails' => $emails]);
}
......
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