Skip to content
Snippets Groups Projects
Verified Commit b4cc2cd2 authored by Damien's avatar Damien
Browse files

FEAT #14567 TIME 0:20 Get signature modes

parent 2ef06274
No related branches found
No related tags found
No related merge requests found
......@@ -178,13 +178,16 @@ class DocumentController
$date = new \DateTime($value['process_date']);
$value['process_date'] = $date->format('d-m-Y H:i');
}
$userSignaturesModes = UserModel::getById(['id' => $value['user_id'], 'select' => ['signature_modes']]);
$formattedDocument['workflow'][] = [
'userId' => $value['user_id'],
'userDisplay' => UserModel::getLabelledUserById(['id' => $value['user_id']]),
'mode' => $value['mode'],
'processDate' => $value['process_date'],
'current' => !$currentFound && empty($value['process_date']),
'signatureMode' => $value['signature_mode']
'userId' => $value['user_id'],
'userDisplay' => UserModel::getLabelledUserById(['id' => $value['user_id']]),
'mode' => $value['mode'],
'processDate' => $value['process_date'],
'current' => !$currentFound && empty($value['process_date']),
'signatureMode' => $value['signature_mode'],
'userSignatureModes' => json_decode($userSignaturesModes['signature_modes'], true)
];
if (empty($value['process_date'])) {
$currentFound = true;
......
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