From f2cde98f5f5e40d5350e7dbe6f8b0f98fb5a51dc Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 1 Apr 2011 15:25:41 +0000 Subject: [PATCH] Fix: bad post --- htdocs/main.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;