diff --git a/htdocs/commande/contact.php b/htdocs/commande/contact.php index dd0fa8d35f6..ef8cfa95070 100644 --- a/htdocs/commande/contact.php +++ b/htdocs/commande/contact.php @@ -46,7 +46,7 @@ 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')); +$hookmanager->initHooks(array('ordercontact', 'globalcard')); $result = restrictedArea($user, 'commande', $id, ''); diff --git a/htdocs/commande/document.php b/htdocs/commande/document.php index 3d5449c6c83..f8e54085583 100644 --- a/htdocs/commande/document.php +++ b/htdocs/commande/document.php @@ -82,7 +82,7 @@ if ($user->socid) { } // Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context -$hookmanager->initHooks(array('ordercarddocument')); +$hookmanager->initHooks(array('orderdocument', 'globalcard')); $result = restrictedArea($user, 'commande', $id, '');