From 85d5400314d3b01563b4af4ab1c30c3cf2d79722 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 1 Aug 2019 10:02:25 +0200 Subject: Fix tests Signed-off-by: Roeland Jago Douma --- apps/dav/lib/Connector/Sabre/SharesPlugin.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/dav/lib') diff --git a/apps/dav/lib/Connector/Sabre/SharesPlugin.php b/apps/dav/lib/Connector/Sabre/SharesPlugin.php index eba91229955..ddc9312771b 100644 --- a/apps/dav/lib/Connector/Sabre/SharesPlugin.php +++ b/apps/dav/lib/Connector/Sabre/SharesPlugin.php @@ -158,6 +158,7 @@ class SharesPlugin extends \Sabre\DAV\ServerPlugin { if (array_search($parentPath, $this->cachedFolders) === false) { $node = $this->userFolder->get($sabreNode->getPath()); $shares = $this->getShare($node); + $this->cachedShares[$sabreNode->getId()] = $shares; } else { return []; } @@ -190,6 +191,7 @@ class SharesPlugin extends \Sabre\DAV\ServerPlugin { ) { $folderNode = $this->userFolder->get($sabreNode->getPath()); + $this->cachedFolders[] = $sabreNode->getPath(); $childShares = $this->getSharesFolder($folderNode); foreach ($childShares as $id => $shares) { $this->cachedShares[$id] = $shares; -- cgit v1.2.3