2
0
forked from Wavyzz/dolibarr

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

@@ -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, '');