From 5aab81dc6648580360add6e4da2f16b1258b013f Mon Sep 17 00:00:00 2001 From: rMalie Date: Wed, 7 Sep 2011 15:47:45 +0000 Subject: [PATCH] // Fix carrier creation for multistore git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8396 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Carrier.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Carrier.php b/classes/Carrier.php index 62364880e..229520cee 100644 --- a/classes/Carrier.php +++ b/classes/Carrier.php @@ -673,8 +673,8 @@ class CarrierCore extends ObjectModel $rangePriceID = ($range == 'range_price') ? $rangeID : 'NULL'; $rangeWeightID = ($range == 'range_weight') ? $rangeID : 'NULL'; - $sql = 'INSERT INTO '._DB_PREFIX_.$range.' (id_carrier, id_shop, id_group_shop, id_range_price, id_range_weight, id_zone, price) - SELECT '.$this->id.', id_shop, id_group_shop, '.$rangePriceID.', '.$rangeWeightID.', id_zone, price FROM '._DB_PREFIX_.$range; + $sql = 'INSERT INTO '._DB_PREFIX_.$range.' (id_carrier, id_range_price, id_range_weight, id_zone, price) + SELECT '.$this->id.', '.$rangePriceID.', '.$rangeWeightID.', id_zone, price FROM '._DB_PREFIX_.$range; Db::getInstance()->Execute($sql); } }