From 8cbdcb9c20d95ee9c1059411f05585d8346fcde4 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 1 Apr 2011 15:27:34 +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 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;