diff --git a/app/src/Command/TransmogrifyCommand.php b/app/src/Command/TransmogrifyCommand.php index c0cc13df2..a332ce577 100644 --- a/app/src/Command/TransmogrifyCommand.php +++ b/app/src/Command/TransmogrifyCommand.php @@ -1308,8 +1308,8 @@ protected function roleSqlSelect(string $tableName): string { manager_co_person_id, cou_id, CASE - WHEN affiliation IS NULL THEN "member" - WHEN affiliation = "" THEN "member" + WHEN affiliation IS NULL THEN 'member' + WHEN affiliation = '' THEN 'member' ELSE affiliation END as affiliation, title, diff --git a/app/templates/ExternalIdentities/fields-nav.inc b/app/templates/ExternalIdentities/fields-nav.inc index 1ac066f34..fc1fa431e 100644 --- a/app/templates/ExternalIdentities/fields-nav.inc +++ b/app/templates/ExternalIdentities/fields-nav.inc @@ -55,7 +55,10 @@ $topLinks = [ ] ] ], - [ +]; + +if($vv_obj?->ext_identity_source_record?->id !== null) { + $topLinks[] = [ 'icon' => 'visibility', 'order' => 'Default', 'class' => 'cm-modal-link nospin', // launch this in a modal @@ -68,8 +71,8 @@ $topLinks = [ 'action' => 'view', $vv_obj->ext_identity_source_record->id ] - ] -]; + ]; +} // $addMenuLinks is also given slightly different treatment from the typical $topLinks found in most views: // it is a page-global menu used for adding MVEAs and is given special treatment in element/mveaCanvas.php.