diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-05-13 14:54:43 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-05-18 17:16:13 +0200 |
commit | a0854b36f012e4c5573a4ed6ea8d074482908c4b (patch) | |
tree | df4803f7b63f21de7d65afebcaf67b480cfe4fdf | |
parent | b70e1ffc6d91a4ca2c6b66012ea6f7e5d39050a0 (diff) | |
download | nextcloud-server-a0854b36f012e4c5573a4ed6ea8d074482908c4b.tar.gz nextcloud-server-a0854b36f012e4c5573a4ed6ea8d074482908c4b.zip |
update cache after move to trash
-rw-r--r-- | apps/files_trashbin/lib/trashbin.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php index 9c8aa5e7525..26a7aeb8033 100644 --- a/apps/files_trashbin/lib/trashbin.php +++ b/apps/files_trashbin/lib/trashbin.php @@ -208,6 +208,8 @@ class Trashbin { return false; } + $view->getUpdater()->rename('/files/' . $file_path, $trashPath); + if ($sizeOfAddedFiles !== false) { $size = $sizeOfAddedFiles; $query = \OC_DB::prepare("INSERT INTO `*PREFIX*files_trash` (`id`,`timestamp`,`location`,`user`) VALUES (?,?,?,?)"); |