Deleteing category doesnt actually remove it from the DB

Started by rayge, June 04, 2013, 05:22:50 AM

Previous topic - Next topic

rayge

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);
I Use: Joomla 3.4.1 & VM 3.0.9

Milbo

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]
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

rayge

I Use: Joomla 3.4.1 & VM 3.0.9

rayge

I tried your modified field and I still see the categoy in the tables after removing from the admin.
I Use: Joomla 3.4.1 & VM 3.0.9

rayge

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
I Use: Joomla 3.4.1 & VM 3.0.9