Fix: bad path
This commit is contained in:
parent
bec23c72c5
commit
b8ac7a10cc
@ -750,8 +750,10 @@ if (!empty($conf->global->MAIN_MODULE_MULTICOMPANY))
|
|||||||
{
|
{
|
||||||
if (GETPOST('action') == 'switchentity' && $user->admin && ! $user->entity)
|
if (GETPOST('action') == 'switchentity' && $user->admin && ! $user->entity)
|
||||||
{
|
{
|
||||||
require_once("../class/actions_multicompany.class.php");
|
$res = @dol_include_once("/multicompany/class/actions_multicompany.class.php");
|
||||||
|
|
||||||
|
if ($res)
|
||||||
|
{
|
||||||
$mc = new ActionsMulticompany($db);
|
$mc = new ActionsMulticompany($db);
|
||||||
|
|
||||||
if($mc->switchEntity(GETPOST('entity')) > 0)
|
if($mc->switchEntity(GETPOST('entity')) > 0)
|
||||||
@ -761,6 +763,7 @@ if (!empty($conf->global->MAIN_MODULE_MULTICOMPANY))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Functions
|
// Functions
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user