Commit 3428435e authored by Cyril Vazquez's avatar Cyril Vazquez
Browse files

FIX: destruction request sent from archiver did not send authorization

request to originator
parent 598002bb
......@@ -161,7 +161,7 @@ class ArchiveDestructionRequest extends abstractMessage
$senderOrg = \laabs::getToken('ORGANIZATION');
// Requested by archiver: send auth request to originator
if ($senderOrg->registrationNumber == $message->recipientOrg) {
if ($senderOrg->registrationNumber == $message->recipientOrgRegNumber) {
$authorizationOriginatingAgencyRequestController = \laabs::newController('medona/AuthorizationOriginatingAgencyRequest');
$authorizationOriginatingAgencyRequestController->send($message, $originatorOrgRegNumber);
......
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