× Warning! This forum is in archival status. New contributions may not work.
topics hierarchy overlap on topic deletion
  • Vote Up0Vote Down mariamaria
    Posts: 38Member
    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
  • 6 Comments sorted by
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    could you reproduce on newscoop demo site (
    http://newscoop-demo.sourcefabric.org/admin ) ?


    On Tue, Jul 2, 2013 at 10:19 PM, maria
    wrote:

    > 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
    >
    >
  • Vote Up0Vote Down mariamaria
    Posts: 38Member
    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


  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    just to be sure that this bug will be fixed please make a ticket on dev.sourcefabirc.org
  • Vote Up0Vote Down SaidSaid
    Posts: 14Member
    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.
  • Vote Up0Vote Down Paweł MikołajczukPaweł Mikołajczuk
    Posts: 72Member, Sourcefabric Team
    Hey, 

    can you test it on our latest 4.3 alpha? Installation notes are here: https://github.com/sourcefabric/Newscoop/blob/master/newscoop/docs/INSTALL.md 

    https://dev.sourcefabric.org/browse/CS-4752 - looks like it can be fixed already.