diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 1719e8c55f0..733de089a67 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -761,7 +761,7 @@ if (!empty($conf->global->MAIN_MODULE_MULTICOMPANY)) $mc = new ActionsMulticompany($db); - if($mc->switchEntity(GETPOST('entity_id')) > 0) + if($mc->switchEntity(GETPOST('entity')) > 0) { Header("Location: ".DOL_URL_ROOT.'/'); exit;