Bug #17195
closed
Creation of multiple folders in filelist module results in blank page
Added by Christopher Hlubek over 17 years ago.
Updated about 16 years ago.
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
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...
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;
}
}
Thanks Christopher!
+1 reading and testing.
I just added whitespaces around concatenation dots and will now send your patch to core list.
Also available in: Atom
PDF