Skip to content

Commit

Permalink
Merge pull request Dolibarr#25928 from altairisfr/hookimport3
Browse files Browse the repository at this point in the history
move hook at the right place
  • Loading branch information
eldy authored Sep 15, 2023
2 parents 791382c + 74ee3a2 commit 21bcc80
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions htdocs/imports/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -2328,13 +2328,13 @@
if (!count($obj->errors) && !count($obj->warnings)) {
$nbok++;
}
}

$reshook = $hookmanager->executeHooks('AfterImportInsert', $parameters);
if ($reshook < 0) {
$arrayoferrors[$sourcelinenb][] = [
'lib' => implode("<br>", array_merge([$hookmanager->error], $hookmanager->errors))
];
}
$reshook = $hookmanager->executeHooks('AfterImportInsert', $parameters);
if ($reshook < 0) {
$arrayoferrors[$sourcelinenb][] = [
'lib' => implode("<br>", array_merge([$hookmanager->error], $hookmanager->errors))
];
}
}
// Close file
Expand Down

0 comments on commit 21bcc80

Please sign in to comment.