Skip to content
Snippets Groups Projects
Commit e2dfdc16 authored by Jean-Laurent DUZANT's avatar Jean-Laurent DUZANT
Browse files

FEAT #17636 TIME 0:05 fix signatureMode switch before sending to fast

parent 859ad6fc
No related branches found
No related tags found
No related merge requests found
...@@ -700,6 +700,8 @@ class FastParapheurController ...@@ -700,6 +700,8 @@ class FastParapheurController
]; ];
//$otpInfo = []; //$otpInfo = [];
foreach ($args['steps'] as $index => $step) { foreach ($args['steps'] as $index => $step) {
$step['mode'] = FastParapheurController::getSignatureModeById(['signatureModeId' => $step['mode']]);
if (in_array($step['mode'], $signatureModes) && !empty($step['type']) && !empty($step['id'])) { if (in_array($step['mode'], $signatureModes) && !empty($step['type']) && !empty($step['id'])) {
if ($step['type'] == 'maarchCourrierUserId') { if ($step['type'] == 'maarchCourrierUserId') {
$user = UserModel::getById(['id' => $step['id'], 'select' => ['external_id->>\'fastParapheur\' as "fastParapheurEmail"']]); $user = UserModel::getById(['id' => $step['id'], 'select' => ['external_id->>\'fastParapheur\' as "fastParapheurEmail"']]);
...@@ -974,7 +976,7 @@ class FastParapheurController ...@@ -974,7 +976,7 @@ class FastParapheurController
$steps = []; $steps = [];
foreach ($args['steps'] as $step) { foreach ($args['steps'] as $step) {
$steps[] = [ $steps[] = [
'mode' => FastParapheurController::getSignatureModeById(['signatureModeId' => $step['signatureMode']]), 'mode' => $step['signatureMode'],
'type' => 'fastParapheurUserEmail', 'type' => 'fastParapheurUserEmail',
'id' => $step['externalId'] 'id' => $step['externalId']
]; ];
...@@ -1185,7 +1187,7 @@ class FastParapheurController ...@@ -1185,7 +1187,7 @@ class FastParapheurController
//map sign to signature //map sign to signature
$modes = []; $modes = [];
foreach ($config['config']['signatureModes']['mode'] as $key => $value) { foreach ($config['config']['signatureModes']['mode'] as $key => $value) {
$value['id'] = FastParapheurController::getSignatureModeById(['signatureModeId'=> $value['id']]); $value['id'] = FastParapheurController::getSignatureModeById(['signatureModeId' => $value['id']]);
$modes[] = $value; $modes[] = $value;
} }
......
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