Skip to content
  • Nigel McNie's avatar
    Prevent infinte loop when copying a View with a 'viewfiles' folder in it. · 8e7489ae
    Nigel McNie authored
    The loop happened when the user copying the view didn't have a
    'viewfiles' folder, and they were copying a view that did have one.
    
    There's some dodgy looking up of directories by name, that lead the code
    to believe that the viewfiles folder it was copying was supposed to be
    the parent for all files copied from the View, including the viewfiles
    folder itself. Thus, the viewfiles folder and another temporary folder
    were marked as parents of each other, and an infinite loop occured.
    
    This dodgy fix gives the relevant bits of code a list of artefacts to
    ignore when trying to find a viewfiles folder, but the real fix is to
    fix bug #3106.
    8e7489ae