Closed aubincleme closed 2 years ago
Looking at the code ; it seems that the velocity macro #macro(getFileFolders $fileDoc)
gets called with files that are not inside of folders.
In that case, #getFilePaths($fileDoc $paths)
will return an empty array ([]
), which will make the call for $paths[0]
fail in #foreach ($path in $paths[0])
Steps to reproduce :
After some time, we get the following error on the right panel :
The stacktrace is the following :