Skip to content

Commit

Permalink
Merge pull request COmanage#182 from skoranda/CFM-384
Browse files Browse the repository at this point in the history
Transmogrify handle empty OrgId affiliation (CFM-384)
  • Loading branch information
skoranda authored May 1, 2024
2 parents 3021191 + 0da79ef commit 28c5be4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/src/Command/TransmogrifyCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -1371,8 +1371,10 @@ protected function split_external_identity(array $origRow, array $row) {
// lookup the CO ID in the cache, however by the time we've been called
// affiliation has been null'd out (since we're moving it to the role row).
// So shove it back in before calling map_affiliation_type.
$row['affiliation'] = $origRow['affiliation'];
$roleRow['affiliation_type_id'] = $this->map_affiliation_type($row);
if(!empty($origRow['affiliation'])) {
$row['affiliation'] = $origRow['affiliation'];
$roleRow['affiliation_type_id'] = $this->map_affiliation_type($row);
}

// Fix up changelog
// Since we're creating a new row, we have to manually fix up booleans
Expand Down

0 comments on commit 28c5be4

Please sign in to comment.