Merge pull request #17799 from atm-john/13.0_fix_wrong_context

FIX : wrong hook context
This commit is contained in:
Laurent Destailleur 2021-06-04 09:07:02 +02:00 committed by GitHub
commit d79be7615c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ if ($user->socid) {
$result = restrictedArea($user, 'produit|service');
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
$hookmanager->initHooks(array('stockreplenishlist'));
$hookmanager->initHooks(array('stockatdate'));
//checks if a product has been ordered