// 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:
1 parent
cecc3721d4
commit
b2ad614fd9
1 file changed
+4
-3
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user