From f0ee6039664ab829695045a93c1903e12937cee7 Mon Sep 17 00:00:00 2001 From: rMalie Date: Mon, 8 Aug 2011 15:31:32 +0000 Subject: [PATCH] // Fix some bugs on multistore git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7944 b9a71923-0436-4b27-9f14-aed3839534dd --- admin-dev/tabs/AdminPayment.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin-dev/tabs/AdminPayment.php b/admin-dev/tabs/AdminPayment.php index 780c5f053..20b993074 100644 --- a/admin-dev/tabs/AdminPayment.php +++ b/admin-dev/tabs/AdminPayment.php @@ -31,7 +31,7 @@ class AdminPayment extends AdminTab public function __construct() { - $shopID = Context::getContext()->shop->getID(); + $shopID = Context::getContext()->shop->getID(true); /* Get all modules then select only payment ones*/ $modules = Module::getModulesOnDisk(); @@ -39,7 +39,7 @@ class AdminPayment extends AdminTab if ($module->tab == 'payments_gateways') { - if($module->id) + if ($module->id) { if(!get_class($module) == 'SimpleXMLElement') $module->country = array(); @@ -88,7 +88,7 @@ class AdminPayment extends AdminTab foreach ($this->paymentModules as $module) if ($module->active AND isset($_POST[$module->name.'_'.$type.''])) foreach ($_POST[$module->name.'_'.$type.''] as $selected) - $values[] = '('.(int)$module->id.', '.Context::getContext()->shop->getID().', '.(int)$selected.')'; + $values[] = '('.(int)$module->id.', '.Context::getContext()->shop->getID(true).', '.(int)$selected.')'; if (sizeof($values)) Db::getInstance()->Execute('INSERT INTO '._DB_PREFIX_.'module_'.$type.' (`id_module`, `id_shop`, `id_'.$type.'`) VALUES '.implode(',', $values)); Tools::redirectAdmin(self::$currentIndex.'&conf=4'.'&token='.$this->token);