FIX : Adding hooks init

This commit is contained in:
atm-adrien 2024-01-30 15:15:32 +01:00
parent 6bc40a5e26
commit dedd0ef20d
2 changed files with 7 additions and 0 deletions

View file

@ -45,6 +45,9 @@ $action = GETPOST('action', 'aZ09');
if ($user->socid) {
$socid = $user->socid;
}
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
$hookmanager->initHooks(array('ordercontact'));
$result = restrictedArea($user, 'commande', $id, '');
$usercancreate = $user->hasRight("commande", "creer");

View file

@ -80,6 +80,10 @@ $permissiontoadd = $usercancreate;
if ($user->socid) {
$socid = $user->socid;
}
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
$hookmanager->initHooks(array('ordercarddocument'));
$result = restrictedArea($user, 'commande', $id, '');