From 4b34a3e3e3b1d66ba11fb26158136b4dcf4dc0be Mon Sep 17 00:00:00 2001 From: "s.renon" Date: Sat, 10 Nov 2012 12:27:19 -0500 Subject: [PATCH] Update app/code/core/Mage/Tag/Model/Resource/Tag/Relation.php When deleting a product that is assign to a tag by unchecking the checkbox under "Products Tagged by Administrators" (Catalog -> Tags -> All Tags) it will also delete all tags associated with that product. see http://www.magentocommerce.com/bug-tracking/issue?issue=14255 --- app/code/core/Mage/Tag/Model/Resource/Tag/Relation.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/code/core/Mage/Tag/Model/Resource/Tag/Relation.php b/app/code/core/Mage/Tag/Model/Resource/Tag/Relation.php index ae46f73d4ecb9..b31a3df07931b 100755 --- a/app/code/core/Mage/Tag/Model/Resource/Tag/Relation.php +++ b/app/code/core/Mage/Tag/Model/Resource/Tag/Relation.php @@ -198,6 +198,7 @@ public function addRelations($model) $write->delete($this->getMainTable(), array( 'product_id IN (?)' => $delete, 'store_id = ?' => $model->getStoreId(), + 'tag_id = ?' => $model->getTagId(), )); }