Merge pull request #7575 from hregis/develop_admin

Fix: for avoid problem with currentcontext
This commit is contained in:
Laurent Destailleur 2017-10-06 16:47:10 +02:00 committed by GitHub
commit 1140016b67

View File

@ -46,7 +46,8 @@ if (! $user->admin) accessforbidden();
$error=0;
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
$hookmanager->initHooks(array('admincompany','globaladmin'));
$contextpage=array('admincompany','globaladmin');
$hookmanager->initHooks($contextpage);
/*
* Actions