mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Removed useless initHook. Must use the context of main calling page.
This commit is contained in:
parent
5d60fb6da8
commit
66a628b306
|
|
@ -5852,7 +5852,6 @@ class Product extends CommonObject
|
|||
$this->stock_theorique += ($stock_commande_fournisseur - $stock_reception_fournisseur);
|
||||
}
|
||||
|
||||
$hookmanager->initHooks(array('productdao'));
|
||||
$parameters = array('id'=>$this->id, 'includedraftpoforvirtual' => $includedraftpoforvirtual);
|
||||
// Note that $action and $object may have been modified by some hooks
|
||||
$reshook = $hookmanager->executeHooks('loadvirtualstock', $parameters, $this, $action);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user