Skip to content
Snippets Groups Projects
Commit 4316b0f4 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #12967 TIME 0:05 Fix IParapheur

parent 143293fc
No related branches found
No related tags found
No related merge requests found
...@@ -276,7 +276,7 @@ class IParapheurController ...@@ -276,7 +276,7 @@ class IParapheurController
{ {
$version = $aArgs['version']; $version = $aArgs['version'];
foreach ($aArgs['idsToRetrieve'][$version] as $resId => $value) { 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"?> $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:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.adullact.org/spring-ws/iparapheur/1.0">
<soapenv:Header/> <soapenv:Header/>
...@@ -321,6 +321,7 @@ class IParapheurController ...@@ -321,6 +321,7 @@ class IParapheurController
$noteContent .= $res->nom . ' : ' . $res->annotation . PHP_EOL; $noteContent .= $res->nom . ' : ' . $res->annotation . PHP_EOL;
$aArgs['idsToRetrieve'][$version][$resId]['status'] = 'refused'; $aArgs['idsToRetrieve'][$version][$resId]['status'] = 'refused';
$aArgs['idsToRetrieve'][$version][$resId]['noteContent'] = $noteContent; $aArgs['idsToRetrieve'][$version][$resId]['noteContent'] = $noteContent;
IParapheurController::processVisaWorkflow(['res_id_master' => $value['res_id_master'], 'res_id' => $value['res_id']]);
break; break;
} else { } else {
$aArgs['idsToRetrieve'][$version][$resId]['status'] = 'waiting'; $aArgs['idsToRetrieve'][$version][$resId]['status'] = 'waiting';
......
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