[BUGFIX] Moving files in filelist renames file to "1"
authorSteffen Ritter <info@rs-websystems.de>
Tue, 14 Aug 2012 14:23:08 +0000 (16:23 +0200)
committerDmitry Dulepov <dmitry@typo3.org>
Mon, 20 Aug 2012 07:18:03 +0000 (09:18 +0200)
On integrating the FAL an small adaption within the clip-
board was missed which leads to a malfunction in the file
module: Moving files renames them to "1"

Adapt the function creating the PasteCmdArray accordingly.
Resolves: #39804
Releases: 6.0

Change-Id: Ia7b4301b04ec207fda4947b4a989669e35f708de
Reviewed-on: http://review.typo3.org/13650
Reviewed-by: Wouter Wolters
Reviewed-by: Mario Rimann
Tested-by: Mario Rimann
Tested-by: Marcel Burkhalter
Reviewed-by: Dmitry Dulepov
Tested-by: Dmitry Dulepov
t3lib/class.t3lib_clipboard.php

index a4ef9b0..497b20b 100644 (file)
@@ -968,7 +968,7 @@ class t3lib_clipboard {
 
                        // Traverse elements and make CMD array
                foreach ($elements as $tP => $path) {
-                       $FILE[$mode][] = array('data' => $path, 'target' => $pUid, 'altName' => 1);
+                       $FILE[$mode][] = array('data' => $path, 'target' => $pUid);
                        if ($mode == 'move') {
                                $this->removeElement($tP);
                        }