Skip to content

Commit e194d50

Browse files
authored
Merge pull request #906 from UN-OCHA/berliner/berliner/HPC-9350
HPC-9350: Initialize options array and explicitely set update to false
2 parents eed87d9 + 5cfbd3e commit e194d50

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

html/modules/custom/ghi_content/src/Controller/ContentBaseListController.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,13 @@ protected function runMigration($redirect, array $tags = NULL) {
7373
$this->messenger()->addWarning($this->t('The import is currently running. Please try again later.'));
7474
return new RedirectResponse($redirect);
7575
}
76+
$options = [
77+
'update' => 0,
78+
];
7679
if ($tags !== NULL) {
7780
$options['configuration'] = ['source_tags' => $tags];
7881
}
79-
$executable = new MigrateBatchExecutable($migration, new MigrateMessage());
82+
$executable = new MigrateBatchExecutable($migration, new MigrateMessage(), $options);
8083
$executable->batchImport();
8184
batch_process($redirect);
8285
$batch = batch_get();

0 commit comments

Comments
 (0)