From 29629d1af180cb2658375e4374a6dc73befc902e Mon Sep 17 00:00:00 2001 From: bMancone Date: Mon, 10 Oct 2011 10:01:15 +0000 Subject: [PATCH] // StockWarehouse Fixed setIdShopList() --- classes/stock/StockWarehouse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/stock/StockWarehouse.php b/classes/stock/StockWarehouse.php index a199c62c2..97f9b7175 100644 --- a/classes/stock/StockWarehouse.php +++ b/classes/stock/StockWarehouse.php @@ -98,7 +98,7 @@ class StockWarehouseCore extends ObjectModel foreach ($id_shop_list as $id_shop) $row_to_insert = array($this->reference => $this->id, 'id_shop' => $id_shop); - Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('DELETE INTO `warehouse_shop` ws WHERE ws.'.$this->identifier.' = '.(int)$this->id); + Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('DELETE FROM `warehouse_shop` ws WHERE ws.'.$this->identifier.' = '.(int)$this->id); Db::getInstance(_PS_USE_SQL_SLAVE_)->autoExecute('warehouse_shop', $row_to_insert, 'INSERT'); }