Merge pull request #2801 from OpenLarry/patch-1

fixes #2679 - 5.0.3 Renaming -> Nothing happens
This commit is contained in:
Bernhard Posselt 2013-04-09 03:40:40 -07:00
commit 352af6005f
1 changed files with 2 additions and 2 deletions

View 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));
}
/**