VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Ben on January 16, 2012, 01:57:08 AM

Title: BUG: Possible to make a child category a child of itself
Post by: Ben on January 16, 2012, 01:57:08 AM
Replication:
Create 1 top level category. (Cat A)
Create a 2nd Category as a child of A.(Cat b)

edit Cat b - from the drop down "category ordering " you can select cat b....

Cat b will now vanish completely from the Category list. As it now is a child of itself. It will not be edittable

To fix: use backend mysql editor to access jos_virtuemart_category_categories .. you will see a entry that the Parent_id entry is the same as the child_id....edit the parent to 0(top level).

FIX: Do not allow admins to select a category as a child of itself.

Edit: VM 2.0.0 Joom 1.7


Title: Re: BUG: Possible to make a child category a child of itself
Post by: Cleanshooter on January 16, 2012, 23:20:35 PM
Thanks for the info... this should be fixed in the next release!
Title: Re: BUG: Possible to make a child category a child of itself
Post by: Milbo on January 16, 2012, 23:54:11 PM
Thanks to you it is :-) nice idea your fix.