]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixes #2679
authorOpenLarry <aaron.larisch@gmx.de>
Mon, 8 Apr 2013 21:26:16 +0000 (00:26 +0300)
committerBernhard Posselt <nukeawhale@gmail.com>
Tue, 9 Apr 2013 11:02:35 +0000 (13:02 +0200)
lib/files/cache/cache.php

index 91bcb73a55dd089e59a48c6acf69142e4f9b7e50..71b70abe3fec5f586cf3f191e3fc8bc6b7d97c39 100644 (file)
@@ -343,9 +343,9 @@ class Cache {
                        $query->execute(array($targetPath, md5($targetPath), $child['fileid']));
                }
 
-               $query = \OC_DB::prepare('UPDATE `*PREFIX*filecache` SET `path` = ?, `path_hash` = ?, `parent` =?'
+               $query = \OC_DB::prepare('UPDATE `*PREFIX*filecache` SET `path` = ?, `path_hash` = ?, `name` = ?, `parent` =?'
                        . ' WHERE `fileid` = ?');
-               $query->execute(array($target, md5($target), $newParentId, $sourceId));
+               $query->execute(array($target, md5($target), basename($target), $newParentId, $sourceId));
        }
 
        /**