hi guys, when i try to delete a topic that has childs, the hierarchy of the list overlaps , the childs are moved to the previous topic. any one got this issue ? please help
> hi guys, > when i try to delete a topic that has childs, the hierarchy of the list > overlaps , the childs are moved to the previous topic. > any one got this issue ? please help > > thanks > >
hi Andrey yes the same appeared on the demo what i did that i added a root topic "category" and added 2 sub topic in the following structure category - sub cat 1 - sub cat 1 1 -sub cat 2
then i only showed the topics in english then i deleted the second root topic and "sub cat 1" then some empty topics appears making spaces between them then i showed all languages topics , and i saw that new topics appears under "category" topic
now the demo doesn't work well , if you try to add a new root topic , it appears under "storm" topic
This doesn't appear to be fixed yet, but clearing the cache after adding a new root topic and before adding a new one seems to fix it.
When you delete a root topic that has other root topics below it in the hierarchy, it will be deleted from the mysql database but is still cached (which is why it will sometimes still show up on the admin topics page refresh). And if you don't clear the cache after deleting a topic, the hierarchy will sometimes collapse as described - which suggests the php script that is adding the left and right 'node' values might be first checking for the cached root topic name/number although it has been deleted, and on not finding it, adding values to the previous root topic in the hierarchy instead.