forked from Wavyzz/dolibarr
move hook at the right place
This commit is contained in:
@@ -2328,13 +2328,13 @@ if ($step == 6 && $datatoimport) {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user