From 4316b0f482ade955fe9c22aee239b33b30807d11 Mon Sep 17 00:00:00 2001 From: "florian.azizian" <florian.azizian@maarch.org> Date: Wed, 15 Apr 2020 17:54:30 +0100 Subject: [PATCH] FIX #12967 TIME 0:05 Fix IParapheur --- .../externalSignatoryBook/controllers/IParapheurController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/external/externalSignatoryBook/controllers/IParapheurController.php b/src/app/external/externalSignatoryBook/controllers/IParapheurController.php index bdb3f3169d7..9c4f5385563 100755 --- a/src/app/external/externalSignatoryBook/controllers/IParapheurController.php +++ b/src/app/external/externalSignatoryBook/controllers/IParapheurController.php @@ -276,7 +276,7 @@ class IParapheurController { $version = $aArgs['version']; foreach ($aArgs['idsToRetrieve'][$version] as $resId => $value) { - if (!empty($value->external_id)) { + if (!empty($value['external_id'])) { $xmlPostString = '<?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.adullact.org/spring-ws/iparapheur/1.0"> <soapenv:Header/> @@ -321,6 +321,7 @@ class IParapheurController $noteContent .= $res->nom . ' : ' . $res->annotation . PHP_EOL; $aArgs['idsToRetrieve'][$version][$resId]['status'] = 'refused'; $aArgs['idsToRetrieve'][$version][$resId]['noteContent'] = $noteContent; + IParapheurController::processVisaWorkflow(['res_id_master' => $value['res_id_master'], 'res_id' => $value['res_id']]); break; } else { $aArgs['idsToRetrieve'][$version][$resId]['status'] = 'waiting'; -- GitLab