Skip to content

Commit 8f44b0a

Browse files
EnjoyFelixElisée Chemineldy
authored
# FIX The "AfterImportInsert" hook is not triggered during the simulation. Dolibarr#33260 (Dolibarr#33261)
* AfterImport hook in the simulation of the import * Update import.php * Update import.php * Update import.php --------- Co-authored-by: Elisée Chemin <[email protected]> Co-authored-by: Laurent Destailleur <[email protected]>
1 parent 9f1f5fd commit 8f44b0a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

htdocs/imports/import.php

+7
Original file line numberDiff line numberDiff line change
@@ -1924,6 +1924,13 @@
19241924
$nbok++;
19251925
}
19261926
}
1927+
1928+
$reshook = $hookmanager->executeHooks('AfterImportInsert', $parameters);
1929+
if ($reshook < 0) {
1930+
$arrayoferrors[$sourcelinenb][] = [
1931+
'lib' => implode("<br>", array_merge([$hookmanager->error], $hookmanager->errors))
1932+
];
1933+
}
19271934
}
19281935
// Close file
19291936
$obj->import_close_file();

0 commit comments

Comments
 (0)