Skip to content

Commit

Permalink
Merge pull request #156 from Ioannis/fetch_person_data
Browse files Browse the repository at this point in the history
fetch missing person data
  • Loading branch information
Ioannis authored Feb 12, 2024
2 parents 6c06000 + 86bce2b commit 3639061
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app/src/Model/Table/ExtIdentitySourceRecordsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public function initialize(array $config): void {
$this->setRequiresCO(true);

$this->setViewContains([
'ExternalIdentitySources'
'ExternalIdentitySources',
'ExternalIdentities' => ['People' => ['PrimaryName']],
]);

$this->setPermissions([
Expand Down
7 changes: 4 additions & 3 deletions app/templates/ExtIdentitySourceRecords/fields-nav.inc
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,15 @@ if(!empty($vv_obj->external_identity_id)) {
]
]
];


// primary name: $vv_obj->external_identity->person->primary_name->full_name
$subnav = [
'name' => 'person',
'active' => 'external_identities',
'subActive' => 'external_identity_roles',
'tabsId' => $vv_obj->person_id,
'tabsId' => $vv_obj->external_identity->person->id,
'tabsController' => 'people',
'subTabsId' => $vv_obj->external_identity_id,
'subTabsId' => $vv_obj->external_identity->id,
'subTabsController' => 'external_identities',
'tabsSupertitle' => $vv_obj->external_identity->description
];
Expand Down

0 comments on commit 3639061

Please sign in to comment.