ADD_HOOK_IN_SITUATION (#30240)
* ADD_HOOK_SITUATION * Update card.php --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
parent
fa50b70985
commit
fbcc463a6f
1 changed files with 9 additions and 0 deletions
|
|
@ -2048,6 +2048,15 @@ if (empty($reshook)) {
|
|||
if ($ret > 0) {
|
||||
$nextSituationInvoice->insertExtraFields();
|
||||
}
|
||||
|
||||
// Hooks
|
||||
$parameters = array('origin' => $origin);
|
||||
$reshook = $hookmanager->executeHooks('createFrom', $parameters, $nextSituationInvoice, $action); // Note that $action and $object may have been
|
||||
// modified by hook
|
||||
if ($reshook < 0) {
|
||||
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
|
||||
$error++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue