Skip to content

Commit

Permalink
First step in moving the cached EIS Record to the Person/External Ide…
Browse files Browse the repository at this point in the history
…ntity subnavigation (CFM-363) (COmanage#155)
  • Loading branch information
arlen committed Feb 13, 2024
1 parent 823bda8 commit a3400b2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
22 changes: 11 additions & 11 deletions app/templates/ExtIdentitySourceRecords/fields-nav.inc
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ if(!empty($vv_obj->external_identity_id)) {
]
]
];
}

$subnav = [
'name' => 'plugin',
'active' => 'search'
];

if(!empty($vv_obj->external_identity_source_id)) {
$subnav['tabsId'] = $vv_obj->external_identity_source_id;
$subnav['tabsController'] = 'external_identity_sources';
$subnav['tabsSupertitle'] = $vv_obj->external_identity_source->description;
$subnav = [
'name' => 'person',
'active' => 'external_identities',
'subActive' => 'external_identity_roles',
'tabsId' => $vv_obj->person_id,
'tabsController' => 'people',
'subTabsId' => $vv_obj->external_identity_id,
'subTabsController' => 'external_identities',
'tabsSupertitle' => $vv_obj->external_identity->description
];
}
5 changes: 4 additions & 1 deletion app/templates/element/subnavigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@
$isExternalId = (
$vv_primary_link == 'external_identity_id'
|| $vv_primary_link == 'external_identity_role_id'
|| $vv_primary_link == 'external_identity_source_id'
|| ($curController == 'ExternalIdentities' && ($curAction == 'edit' || $curAction == 'view'))
|| ($curController == 'ExternalIdentityRoles' && ($curAction == 'edit' || $curAction == 'view'))
) ? true : false;
Expand Down Expand Up @@ -382,7 +383,9 @@
<?php
$parentId = $curId;
$curId = $this->request->getQuery($vv_primary_link);
if(!empty($vv_ei_id)) {
if(!empty($subTabsId)) {
$curId = $subTabsId;
} elseif(!empty($vv_ei_id)) {
$curId = $vv_ei_id;
$linkFilter = ['external_identity_id' => $curId];
} elseif(!empty($vv_obj)) {
Expand Down

0 comments on commit a3400b2

Please sign in to comment.