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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13304 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie committed 2012-02-14 13:50:04 +00:00
1 parent cecc3721d4
commit b2ad614fd9
1 file changed
+4 -3
+4 -3
View File
@@ -171,9 +171,10 @@ class ShopCore extends ObjectModel
} }
// removes stock available // removes stock available
$res &= Db::getInstance()->execute(' $res &= Db::getInstance()->delete(_DB_PREFIX_.'stock_available', 'id_shop = '.(int)$this->id);
DELETE FROM '._DB_PREFIX_.'stock_available
WHERE id_shop = '.(int)$this->id); // Remove urls
$res &= Db::getInstance()->delete(_DB_PREFIX_.'shop_url', 'id_shop = '.(int)$this->id);
Shop::cacheShops(true); Shop::cacheShops(true);