Merge pull request #6851 from atm-arnaud/FIX_hook_doactions_invoice_model

FIX doactions hook missing in invoice model page
This commit is contained in:
Laurent Destailleur 2017-05-18 17:51:09 +02:00 committed by GitHub
commit d4fd222251

View File

@ -124,6 +124,10 @@ if (is_array($extrafields->attribute_label) && count($extrafields->attribute_lab
* Actions
*/
$parameters = array('socid' => $socid);
$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
// Set note
include DOL_DOCUMENT_ROOT.'/core/actions_setnotes.inc.php'; // Must be include, not include_once