Commit 941b783d authored by Charlotte Bataille's avatar Charlotte Bataille
Browse files

feat/18593 : display other org owner in search form when transaction

parent a806e4f9
Pipeline #16671 failed with stages
in 21 seconds
......@@ -77,7 +77,21 @@ class archive
$emptyRole = true;
} else {
$emptyRole = false;
$ownerOriginatorOrgs = $this->getOwnerOriginatorsOrgs($currentService);
// $ownerOriginatorOrgs = $this->getOwnerOriginatorsOrgs($currentService);
$orgController = \laabs::newController('organization/organization');
$originators = $orgController->getOriginator();
foreach ($originators as $originator) {
if (!isset($ownerOriginatorOrgs[(string) $originator->ownerOrgId])) {
$ownerOriginatorOrgs[(string) $originator->ownerOrgId] = new \stdClass();
$ownerOriginatorOrgs[(string) $originator->ownerOrgId]->displayName = $originator->ownerOrgName;
$ownerOriginatorOrgs[(string) $originator->ownerOrgId]->originators = [];
}
if (!in_array($originator, $ownerOriginatorOrgs[(string) $originator->ownerOrgId]->originators)) {
$ownerOriginatorOrgs[(string)$originator->ownerOrgId]->originators[] = $originator;
}
}
}
$descriptionSchemeNames = \laabs::callService('recordsManagement/descriptionScheme/read_name_Descriptionfields');
$retentionRuleController = \laabs::newController('recordsManagement/retentionRule');
......
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