[BUGFIX] FAL: file properties are not updated 69/17569/3
authorStefan Froemken <froemken@gmail.com>
Wed, 16 Jan 2013 22:43:06 +0000 (23:43 +0100)
committerBenjamin Mack <benni@typo3.org>
Sat, 9 Feb 2013 05:39:20 +0000 (06:39 +0100)
The fileproperties are not updated correctly. In
case of this issue it is the filesize which was not
updated in filelist-module

Resolves: #44585
Releases: 6.0, 6.1
Change-Id: I539b6ab94c4f5aa90933302687f0c666953270fa
Reviewed-on: https://review.typo3.org/17569
Reviewed-by: Stefan Froemken
Tested-by: Stefan Froemken
Reviewed-by: Dan Untenzu
Tested-by: Dan Untenzu
Reviewed-by: Wouter Wolters
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
typo3/sysext/core/Classes/Resource/File.php

index f0c149b..54cf963 100644 (file)
@@ -187,7 +187,7 @@ class File extends AbstractFile {
                if ($this->properties['uid'] != 0) {
                        throw new \InvalidArgumentException('uid property is already set. Cannot merge index record.', 1321023156);
                }
-               $this->properties = array_merge($this->properties, $recordData);
+               $this->properties = array_merge($recordData, $this->properties);
        }
 
        /**
@@ -322,4 +322,4 @@ class File extends AbstractFile {
 }
 
 
-?>
\ No newline at end of file
+?>