From 7780d7a634bf9dc63f7e7afc76e8b216a2d8988a Mon Sep 17 00:00:00 2001 From: rMalie Date: Mon, 27 Feb 2012 09:49:43 +0000 Subject: [PATCH] // Fix currencies with multishop #PSTEST-809 --- controllers/admin/AdminCurrenciesController.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/controllers/admin/AdminCurrenciesController.php b/controllers/admin/AdminCurrenciesController.php index 8213a37c6..ac5bb5ee2 100644 --- a/controllers/admin/AdminCurrenciesController.php +++ b/controllers/admin/AdminCurrenciesController.php @@ -29,9 +29,17 @@ class AdminCurrenciesControllerCore extends AdminController { public function __construct() { - $this->table = 'currency'; + $this->table = 'currency'; $this->className = 'Currency'; - $this->lang = false; + $this->lang = false; + + parent::__construct(); + $this->multishop_context = Shop::CONTEXT_ALL; + } + + public function init() + { + parent::init(); $this->fieldsDisplay = array( 'id_currency' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), @@ -79,9 +87,6 @@ class AdminCurrenciesControllerCore extends AdminController '.Tools::getShopDomain(true, true).__PS_BASE_URI__.basename(_PS_ADMIN_DIR_).'/cron_currency_rates.php?secure_key='.md5(_COOKIE_KEY_.Configuration::get('PS_SHOP_NAME')).'

', ) ); - parent::__construct(); - - $this->multishop_context = Shop::CONTEXT_ALL; } public function renderList()