[BUGFIX] File upload in RTE-Link-Editor throws 500 error 50/20850/7
authorPhilipp Gampe <philipp.gampe@typo3.org>
Thu, 16 May 2013 18:42:49 +0000 (20:42 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 7 Jul 2013 00:01:13 +0000 (02:01 +0200)
commit1db576a52589a1006224a83170cf7b3b2476927a
tree018e8cb3d311a583d58d43fcbdcc0bca290f4024
parent344e87024924e4b071fbf0e9e8008c3a1c76f235
[BUGFIX] File upload in RTE-Link-Editor throws 500 error

When you want to add a link in the RTE-Editor, you can upload files in
the "File" tab. When you select a file and want to upload it, the
reloaded content in the create-link-overlay will throw an error.

The method is feed with a translation of "none - new file".

Bypass the file or folder lookup if we do not have an integer id
and print the message instead.

Resolves: #48219
Releases: 6.2, 6.1, 6.0
Change-Id: I9e1e6bc84b21fb04608841515ac414eec8c04130
Reviewed-on: https://review.typo3.org/20850
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/core/Build/UnitTests.xml
typo3/sysext/recordlist/Classes/Browser/ElementBrowser.php
typo3/sysext/recordlist/Tests/Unit/Browser/ElementBrowserTest.php [new file with mode: 0644]