Skip to content

Commit

Permalink
Transmogrification sql typo.External identity Source link fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis committed Aug 27, 2024
1 parent 15fa37c commit 309137a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/src/Command/TransmogrifyCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
9 changes: 6 additions & 3 deletions app/templates/ExternalIdentities/fields-nav.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit 309137a

Please sign in to comment.