2
0
forked from Wavyzz/dolibarr

move hook at the right place

This commit is contained in:
Christophe Battarel
2023-09-15 10:55:16 +02:00
parent 791382c356
commit 74ee3a2452

View File

@@ -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