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

FIX #13670 TIME 0:10 fix warning send to MP

parent 63d10197
No related branches found
No related tags found
No related merge requests found
...@@ -488,6 +488,10 @@ class MaarchParapheurController ...@@ -488,6 +488,10 @@ class MaarchParapheurController
$version = $aArgs['version']; $version = $aArgs['version'];
foreach ($aArgs['idsToRetrieve'][$version] as $resId => $value) { foreach ($aArgs['idsToRetrieve'][$version] as $resId => $value) {
$documentWorkflow = MaarchParapheurController::getDocumentWorkflow(['config' => $aArgs['config'], 'documentId' => $value['external_id']]); $documentWorkflow = MaarchParapheurController::getDocumentWorkflow(['config' => $aArgs['config'], 'documentId' => $value['external_id']]);
if (!is_array($documentWorkflow)) {
unset($aArgs['idsToRetrieve'][$version][$resId]);
continue;
}
$state = MaarchParapheurController::getState(['workflow' => $documentWorkflow]); $state = MaarchParapheurController::getState(['workflow' => $documentWorkflow]);
if (in_array($state['status'], ['validated', 'refused'])) { if (in_array($state['status'], ['validated', 'refused'])) {
......
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