Merge pull request #9682 from atm-ph/fix_7.0_missing_hook

Fix missing hook on sellsjournal
This commit is contained in:
Laurent Destailleur 2018-10-04 19:06:02 +02:00 committed by GitHub
commit 8592b03b49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,11 +59,15 @@ $now = dol_now();
if ($user->societe_id > 0) if ($user->societe_id > 0)
accessforbidden(); accessforbidden();
$hookmanager->initHooks(array('sellsjournal'));
$parameters=array();
/* /*
* Actions * Actions
*/ */
$reshook=$hookmanager->executeHooks('doActions',$parameters,$user,$action); // Note that $action and $object may have been modified by some hooks
// Get informations of journal // Get informations of journal
$accountingjournalstatic = new AccountingJournal($db); $accountingjournalstatic = new AccountingJournal($db);
$accountingjournalstatic->fetch($id_journal); $accountingjournalstatic->fetch($id_journal);