From 991ae63a6d102bd5335b14dc28e585749cd75b2f Mon Sep 17 00:00:00 2001 From: "florian.azizian" <florian.azizian@maarch.org> Date: Wed, 17 Apr 2019 14:42:00 +0100 Subject: [PATCH] FEAT #8391 get user name with xParaph --- .../externalSignatoryBook/controllers/XParaphController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/external/externalSignatoryBook/controllers/XParaphController.php b/src/app/external/externalSignatoryBook/controllers/XParaphController.php index 89df3f097be..f960ab82c87 100755 --- a/src/app/external/externalSignatoryBook/controllers/XParaphController.php +++ b/src/app/external/externalSignatoryBook/controllers/XParaphController.php @@ -142,6 +142,7 @@ class XParaphController <password xsi:type="xsd:string">'.$data['password'].'</password> <action xsi:type="xsd:string">DETAIL</action> <scenario xsi:type="xsd:string">' . $config['data']['docutype'] . '-' . $config['data']['docustype'].'</scenario> + <version xsi:type="xsd:string">2</version> </params> </urn:XPRF_Initialisation_Deposer> </soapenv:Body> @@ -166,10 +167,10 @@ class XParaphController $sign = []; foreach ($xmlData->SCENARIO->AUTORISATIONS->VISEURS->VISEUR as $value) { - $visa[] = (string)$value; + $visa[(string)$value->ACTEUR_LOGIN] = (string)$value->ACTEUR_NOM; } foreach ($xmlData->SCENARIO->AUTORISATIONS->SIGNATAIRES->SIGNATAIRE as $value) { - $sign[] = (string)$value; + $sign[(string)$value->ACTEUR_LOGIN] = (string)$value->ACTEUR_NOM; } return $response->withJson(['visa' => $visa, 'sign' => $sign]); -- GitLab