[-] BO: Default country should be overriden in the context in multishop

This commit is contained in:
Rémi Gaillard
2013-10-18 10:23:06 +02:00
parent b8273a13e6
commit 6747d3bbac
+4 -1
View File
@@ -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();
}