[BUGFIX] Use delayedImportElement after uploading files 09/30609/4
authorFrans Saris <franssaris@gmail.com>
Fri, 6 Jun 2014 14:10:42 +0000 (16:10 +0200)
committerMarkus Klein <klein.t3@mfc-linz.at>
Sat, 7 Jun 2014 15:16:27 +0000 (17:16 +0200)
When uploading multiple files in TCEForm the DrapUploader
adds all uploaded files directly to the inline element of the
form. But when a previous request isn't finished yet, it
breaks the processing of last request.

This patch changes the use of importElement to
delayedImportElement so the next element is only added
when the previous is processed.

Resolves: #58956
Resolves: #57472
Resolves: #57190
Releases: 6.2
Change-Id: Iccad2ee19a5462cb63ed749ad60cb685460eb66d
Reviewed-on: https://review.typo3.org/30609
Reviewed-by: Helmut Hummel
Tested-by: Marc Fell
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/backend/Resources/Public/JavaScript/DragUploader.js

index 0adbccc..4c36850 100644 (file)
@@ -244,7 +244,7 @@ define('TYPO3/CMS/Backend/DragUploader', ['jquery'], function($) {
                                }
 
                                if (me.dragUploader.$element.data('file-irre-object')) {
-                                       inline.importElement(
+                                       inline.delayedImportElement(
                                                me.dragUploader.$element.data('file-irre-object'),
                                                'sys_file',
                                                data.result.upload[0].uid,