Update card.php

This commit is contained in:
Laurent Destailleur 2021-01-19 12:15:56 +01:00 committed by GitHub
parent fe537fb2fc
commit d82765c6da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,11 +97,6 @@ if ($object->id > 0) {
$now = dol_now();
/*
* Actions
*/
if ($id > 0 && empty($object->id))
{
// Load data of third party
@ -109,6 +104,12 @@ if ($id > 0 && empty($object->id))
if ($object->id < 0) dol_print_error($db, $object->error, $object->errors);
}
/*
* Actions
*/
$parameters = array('id' => $id, 'socid' => $id);
$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some
if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');