From cb3d3ebf50efd044f50798a22bb3cc4efb9c9e26 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 8 Jan 2016 13:07:23 +0100 Subject: [PATCH] set etag and permission fields for trashbin entries --- apps/files_trashbin/lib/helper.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/files_trashbin/lib/helper.php b/apps/files_trashbin/lib/helper.php index 0ccf15cd2b..ec5b49b3c7 100644 --- a/apps/files_trashbin/lib/helper.php +++ b/apps/files_trashbin/lib/helper.php @@ -27,6 +27,7 @@ namespace OCA\Files_Trashbin; use OC\Files\FileInfo; +use OCP\Constants; class Helper { @@ -91,6 +92,8 @@ class Helper 'type' => $view->is_dir($dir . '/' . $entryName) ? 'dir' : 'file', 'directory' => ($dir === '/') ? '' : $dir, 'size' => $size, + 'etag' => '', + 'permissions' => Constants::PERMISSION_ALL - Constants::PERMISSION_SHARE ); if ($originalPath) { $i['extraData'] = $originalPath.'/'.$id;