diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 36a5c4e9620..9eb22ba5513 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -777,7 +777,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;