// Remove shop url when a shop is deleted #PSTEST-747

This commit is contained in:
rMalie
2012-02-14 13:50:04 +00:00
parent 1edd5d5148
commit 3dc3285de1
+4 -3
View File
@@ -171,9 +171,10 @@ class ShopCore extends ObjectModel
}
// removes stock available
$res &= Db::getInstance()->execute('
DELETE FROM '._DB_PREFIX_.'stock_available
WHERE id_shop = '.(int)$this->id);
$res &= Db::getInstance()->delete(_DB_PREFIX_.'stock_available', 'id_shop = '.(int)$this->id);
// Remove urls
$res &= Db::getInstance()->delete(_DB_PREFIX_.'shop_url', 'id_shop = '.(int)$this->id);
Shop::cacheShops(true);