// StockWarehouse Fixed setIdShopList()

This commit is contained in:
bMancone
2011-10-10 10:01:15 +00:00
parent 0309b6b281
commit 29629d1af1
+1 -1
View File
@@ -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');
}