summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-04-20 16:46:35 +0200
committerRobin Appelman <icewind@owncloud.com>2015-04-27 14:07:16 +0200
commit45784f213f5e7cf9a38feabd52c4ffadee9ae4f9 (patch)
tree4e0b8825da0b1c1e7ee5bfa96141d407c5db9c14 /lib
parentf488624e5ff3a8f580029e98373071d6fe91e2eb (diff)
downloadnextcloud-server-45784f213f5e7cf9a38feabd52c4ffadee9ae4f9.tar.gz
nextcloud-server-45784f213f5e7cf9a38feabd52c4ffadee9ae4f9.zip
fix propagation when renaming a directly reshared folder
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/view.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 162bf568de7..63af2b616cf 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -658,6 +658,10 @@ class View {
} elseif ($result) {
if ($internalPath1 !== '') { // dont do a cache update for moved mounts
$this->updater->rename($path1, $path2);
+ } else { // only do etag propagation
+ $this->getUpdater()->getPropagator()->addChange($path1);
+ $this->getUpdater()->getPropagator()->addChange($path2);
+ $this->getUpdater()->getPropagator()->propagateChanges();
}
if ($this->shouldEmitHooks($path1) and $this->shouldEmitHooks($path2)) {
\OC_Hook::emit(