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

FEAT #15155 TIME 0:20 add subject and alt_identifier in preprocess Send To...

FEAT #15155 TIME 0:20 add subject and alt_identifier in preprocess Send To RecordManagement with multiple documents
parent c5a8b2c6
No related branches found
No related tags found
No related merge requests found
...@@ -175,10 +175,11 @@ trait PreProcessActionSEDATrait ...@@ -175,10 +175,11 @@ trait PreProcessActionSEDATrait
'doctype' => $doctypesData[$typeId] 'doctype' => $doctypesData[$typeId]
]); ]);
if (!empty($return['errors'])) { if (!empty($archivalData['errors'])) {
$resourcesInformations['errors'][] = ['alt_identifier' => $resources[$resId]['alt_identifier'], 'res_id' => $resId, 'reason' => $return['errors']]; $resourcesInformations['errors'][] = ['alt_identifier' => $resources[$resId]['alt_identifier'], 'res_id' => $resId, 'reason' => $archivalData['errors']];
continue; continue;
} else { } else {
$archivalData['archivalData']['data']['metadata'] = ['subject' => $resources[$resId]['subject'], 'alt_identifier' => $resources[$resId]['alt_identifier']];
$resourcesInformations['success'][$resId] = $archivalData['archivalData']; $resourcesInformations['success'][$resId] = $archivalData['archivalData'];
} }
......
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