Bug #17195
closedCreation of multiple folders in filelist module results in blank page
0%
Description
In the filelist module, the creation of more than one new folder returns a blank page. The folders are created though.
This bug is reproducible in TYPO3 Versions 4.0.3 (maybe since 4.0) and 4.1.x too.
How to reproduce the bug:
Filelist Module -> New
Select 2 or more folders, name them e.g. "a","b". Click "Create folders".
-> Blank page!
(issue imported from #M5387)
Files
Updated by Christopher Hlubek over 16 years ago
This problem occurs because the redirect value is "forgotten" after selection of more than 1 folder in the drop-down box. I will dig into this...
Updated by Christopher Hlubek over 16 years ago
The returnUrl parameter is not included in the reload function of the select onchange event. Adding the returnUrl value to the url fixes the problem.
file_newfolder.php (142):
function reload(a) { //
if (!changed || (changed && confirm('.$LANG->JScharCode($LANG->sL('LLL:EXT:lang/locallang_core.php:mess.redraw')).'))) {
var params = "&target="+escape(path)+"&number="+a+"&returnUrl="+escape("'.$this->returnUrl.'");
window.location.href = "file_newfolder.php?"+params;
}
}
Updated by Christian Kuhn over 16 years ago
Thanks Christopher!
+1 reading and testing.
I just added whitespaces around concatenation dots and will now send your patch to core list.