Skip to content

Commit

Permalink
Check fo ids to update database
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Feb 17, 2021
1 parent c11ae62 commit 3afd0cc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docroot/modules/humsci/hs_person/hs_person.install
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@ function hs_person_update_8004() {
->condition('type', 'hs_person')
->notExists('field_hs_person_image')
->execute();

$database->update('migrate_map_hs_capx')
->fields(['source_row_status' => 1])
->condition('destid1', array_values($nids), 'IN')
->execute();
if ($nids) {
$database->update('migrate_map_hs_capx')
->fields(['source_row_status' => 1])
->condition('destid1', array_values($nids), 'IN')
->execute();
}
}

0 comments on commit 3afd0cc

Please sign in to comment.