Task #1511 and updated changelog

This commit is contained in:
Marcos García de La Fuente 2014-07-23 06:20:17 +02:00
parent f5d1d1563b
commit f3cbe1beac
2 changed files with 4 additions and 1 deletions

View File

@ -57,7 +57,7 @@ For developers:
- New: [ Task #1481 ] Add trigger BILL_SUPPLIER_UPDATE.
- New: [ Task #1495 ] Add trigger LINECONTRACT_CREATE.
- New: Added hook "formConfirm" and "doActions" for supplier invoice card
- New: Added hook "doActions" for supplier order card
- New: [ task #1511, #1426 ] Added hook "doActions" for supplier card and supplier order card
WARNING: Following change may create regression for some external modules, but was necessary to make
Dolibarr better:

View File

@ -52,6 +52,9 @@ $object = new Fournisseur($db);
* Action
*/
$parameters=array('socid'=>$socid);
$reshook=$hookmanager->executeHooks('doActions',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
if ($action == 'setsupplieraccountancycode')
{
$result=$object->fetch($id);