move hook at the right place
This commit is contained in:
parent
791382c356
commit
74ee3a2452
1 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue