Commit 78e2b7bb authored by Alexandre Morin's avatar Alexandre Morin
Browse files

Fix bug on restitution process. Resitution method added in RM to push an event...

Fix bug on restitution process. Resitution method added in RM to push an event of restitution in lifecycle journal.
parent 8fff9b56
...@@ -371,12 +371,13 @@ class ArchiveRestitutionRequest extends abstractMessage ...@@ -371,12 +371,13 @@ class ArchiveRestitutionRequest extends abstractMessage
$archives = array(); $archives = array();
foreach ((array) $message->unitIdentifier as $unitIdentifier) { foreach ((array) $message->unitIdentifier as $unitIdentifier) {
$archive = $this->archiveController->retrieve($unitIdentifier->objectId); $archive = $this->archiveController->restitute($unitIdentifier->objectId);
$statusChanged = $this->archiveController->setStatus((string) $archive->archiveId, "restituted");
if (count($statusChanged["success"])) { if ($archive == null) {
$archives[] = $archive; continue;
} }
$archives[] = $archive;
} }
try { try {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment