From 6747d3bbac58eebb22e0f7a169254909e0025d2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Fri, 18 Oct 2013 10:23:06 +0200 Subject: [PATCH] [-] BO: Default country should be overriden in the context in multishop --- classes/controller/AdminController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php index 23d9de7b5..c0d529d60 100644 --- a/classes/controller/AdminController.php +++ b/classes/controller/AdminController.php @@ -1940,7 +1940,10 @@ class AdminControllerCore extends Controller $this->context->shop = new Shop(Configuration::get('PS_SHOP_DEFAULT')); elseif ($this->context->shop->id != $shop_id) $this->context->shop = new Shop($shop_id); - + + // Replace current default country + $this->context->country = new Country((int)Configuration::get('PS_COUNTRY_DEFAULT')); + $this->initBreadcrumbs(); }