Commit 8ce3f34a authored by Arnaud Pauget's avatar Arnaud Pauget
Browse files

fix(18079) : get the right orgId in control

parent 2a9cd920
Pipeline #14546 failed with stages
in 1 minute and 1 second
......@@ -1067,8 +1067,7 @@ trait archiveModificationTrait
continue;
}
$isAvailableOriginator = array_search($archive->originatorOrgRegNumber, array_column($this->getDescendantServices($archive->originatorOwnerOrgId, $archive->archivalAgreementReference), 'orgId'));
$isAvailableOriginator = array_search($newOriginatorOrg->orgId, array_column($this->getDescendantServices($archive->originatorOwnerOrgId, $archive->archivalAgreementReference), 'orgId'));
if (!$isAvailableOriginator) {
$result["error"][] = $archiveId;
}
......
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