diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-01-12 14:01:40 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-01-12 18:15:31 +0100 |
commit | 8cc13031e95852e6d2999d963ed7844a7a491540 (patch) | |
tree | 6cf8447fc4cf0abe27daf64c8ab134a1bbbaf958 /apps/files/lib | |
parent | dac7828480207f8297e63d1f2834e118a869bf81 (diff) | |
download | nextcloud-server-8cc13031e95852e6d2999d963ed7844a7a491540.tar.gz nextcloud-server-8cc13031e95852e6d2999d963ed7844a7a491540.zip |
Return path attribute for ajax rename operations
This fixes an issue when renaming files from a flat list view like
"Favorites" or "Shared with you", in which case the path needs to be
present in the response to make sure the data-path attribute is properly
set in the JS side.
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/app.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/lib/app.php b/apps/files/lib/app.php index e1aeb4d4223..47d0ec9be9d 100644 --- a/apps/files/lib/app.php +++ b/apps/files/lib/app.php @@ -106,6 +106,7 @@ class App { $meta = $this->view->getFileInfo($normalizedNewPath); $meta = \OCA\Files\Helper::populateTags(array($meta)); $fileInfo = \OCA\Files\Helper::formatFileInfo(current($meta)); + $fileInfo['path'] = dirname($normalizedNewPath); $result['success'] = true; $result['data'] = $fileInfo; } else { |