Commit 56eea994 authored by Arnaud Pauget's avatar Arnaud Pauget
Browse files

Merge branch 'fix/Communication_Request' into 'release/2.4'

Add new variable to check if the archive is communicable or not

See merge request maarch/thirdPartyArchiving!65
parents 568b3956 0a2e63df
...@@ -122,7 +122,7 @@ class ArchiveDeliveryRequest extends abstractMessage ...@@ -122,7 +122,7 @@ class ArchiveDeliveryRequest extends abstractMessage
$messages = array(); $messages = array();
foreach ($archiveIds as $archiveId) { foreach ($archiveIds as $archiveId) {
$archive = $this->archiveController->retrieve($archiveId); $archive = $this->archiveController->retrieve($archiveId, $withBinary = false, $checkAccess = true, $isCommunication = true);
if (!isset($archivesByOriginator[$archive->originatorOrgRegNumber])) { if (!isset($archivesByOriginator[$archive->originatorOrgRegNumber])) {
$archivesByOriginator[$archive->originatorOrgRegNumber] = array(); $archivesByOriginator[$archive->originatorOrgRegNumber] = array();
......
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