VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: rayge on June 04, 2013, 05:22:50 AM

Title: Deleteing category doesnt actually remove it from the DB
Post by: rayge on June 04, 2013, 05:22:50 AM
When i delete a category It still shows up in the database.
Can someone validate this?
After i remove a category it is still SHowing in the following tables
jos_virtuemart_category_medias, jos_virtuemart_categories, jos_virtuemart_categories_en_gb, jos_virtuemart_category_categories
So even AFTER delteing the category from the admin i have to run the following to actually remove it.

DELETE FROM jos_virtuemart_category_medias WHERE virtuemart_category_id IN (146,162,163,16,6);
DELETE FROM jos_virtuemart_categories WHERE virtuemart_category_id IN (146,162,163,16,6);
DELETE FROM jos_virtuemart_categories_en_gb  WHERE virtuemart_category_id IN (146,162,163,16,6);
DELETE FROM jos_virtuemart_category_categories WHERE category_child_id IN (146,162,163,16,6);
Title: Re: Deleteing category doesnt actually remove it from the DB
Post by: Milbo on June 04, 2013, 13:23:11 PM
Heavens that was some old code, yeh. I changed it, will be in the next version, you may try this model

[attachment cleanup by admin]
Title: Re: Deleteing category doesnt actually remove it from the DB
Post by: rayge on June 04, 2013, 19:49:23 PM
THanks
Title: Re: Deleteing category doesnt actually remove it from the DB
Post by: rayge on June 04, 2013, 21:11:29 PM
I tried your modified field and I still see the categoy in the tables after removing from the admin.
Title: Re: Deleteing category doesnt actually remove it from the DB
Post by: rayge on July 24, 2013, 17:12:35 PM
This still hasnt been fixed in 2.0.21G
I deleted a category from the admin and the record in virtuemart_categories_en_gb STILL REMAINS
this needs fixed ASAP