summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-01-12 14:01:04 +0100
committerVincent Petry <pvince81@owncloud.com>2015-01-12 18:14:17 +0100
commitdac7828480207f8297e63d1f2834e118a869bf81 (patch)
tree5a8c13318b64df09ecf91caf815ab0e93b1e18dd /apps/files/lib
parent331d73c3a37e74f1e322b9bfb239940275422a65 (diff)
downloadnextcloud-server-dac7828480207f8297e63d1f2834e118a869bf81.tar.gz
nextcloud-server-dac7828480207f8297e63d1f2834e118a869bf81.zip
Return tags after rename
To make it possible for the web UI to correctly display the tag/favorite information after a rename, this information is now returned in the rename response
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/app.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files/lib/app.php b/apps/files/lib/app.php
index c21e44bff4e..e1aeb4d4223 100644
--- a/apps/files/lib/app.php
+++ b/apps/files/lib/app.php
@@ -104,9 +104,10 @@ class App {
) {
// successful rename
$meta = $this->view->getFileInfo($normalizedNewPath);
- $fileinfo = \OCA\Files\Helper::formatFileInfo($meta);
+ $meta = \OCA\Files\Helper::populateTags(array($meta));
+ $fileInfo = \OCA\Files\Helper::formatFileInfo(current($meta));
$result['success'] = true;
- $result['data'] = $fileinfo;
+ $result['data'] = $fileInfo;
} else {
// rename failed
$result['data'] = array(