ADD_HOOK_IN_SITUATION (#30240)

* ADD_HOOK_SITUATION

* Update card.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
IC-Mathieu 2024-07-06 03:54:33 +02:00 committed by GitHub
parent fa50b70985
commit fbcc463a6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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++;
}
}
}
}