From a0854b36f012e4c5573a4ed6ea8d074482908c4b Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 13 May 2015 14:54:43 +0200 Subject: [PATCH] update cache after move to trash --- apps/files_trashbin/lib/trashbin.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php index 9c8aa5e752..26a7aeb803 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 (?,?,?,?)");