Skip to content

Commit

Permalink
Additional Pipeline fix (NOJIRA)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed Aug 29, 2024
1 parent 896ebb6 commit 8fb585d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions app/src/Model/Table/PipelinesTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -1333,6 +1333,13 @@ protected function syncExternalIdentity(
$found = Hash::extract($arecord[$aeirmodel], '{n}[id='.$aeirentity->id.']');
}

if(!$found
&& !empty($newEntities[$aeirmodel])
&& in_array($aeirentity->id, $newEntities[$aeirmodel])) {
// This is a new entity we just added
$found = true;
}

if(!$found) {
$this->llog('trace', "Deleted $eirmodel " . $aeirentity->id . " for $model " . $aentity->id);
$this->Cos->People->ExternalIdentities->$model->$eirmodel->deleteOrFail($aeirentity);
Expand Down
2 changes: 1 addition & 1 deletion app/templates/ExternalIdentityRoles/fields.inc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if($vv_action == 'add' || $vv_action == 'edit' || $vv_action == 'view') {
foreach([
'ordr',
'title',
'organization'.
'organization',
'department'
] as $field) {
print $this->element('form/listItem', [
Expand Down

0 comments on commit 8fb585d

Please sign in to comment.