Browse Source

FIX doactions hook missing in invoice model page

arnaud 8 years ago
parent
commit
c9738aa7ea
1 changed files with 4 additions and 0 deletions
  1. 4 0
      htdocs/compta/facture/fiche-rec.php

+ 4 - 0
htdocs/compta/facture/fiche-rec.php

@@ -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