From 99442b60d5253f36438bd7c8e359ddc5a7ec219f Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 11 May 2023 13:08:57 +0200 Subject: fix: favorites view and universal search against tags Signed-off-by: Arthur Schiwon --- apps/dav/lib/Connector/Sabre/FilesReportPlugin.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/dav') diff --git a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php index c30c7bc51d0..7a53c34744c 100644 --- a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php +++ b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php @@ -234,8 +234,10 @@ class FilesReportPlugin extends ServerPlugin { // find sabre nodes by file id, restricted to the root node path $additionalNodes = $this->findNodesByFileIds($reportTargetNode, $resultFileIds); - if (!empty($additionalNodes)) { + if ($additionalNodes && $results) { $results = array_intersect($results, $additionalNodes); + } elseif (!$results && $additionalNodes) { + $results = $additionalNodes; } $filesUri = $this->getFilesBaseUri($uri, $reportTargetNode->getPath()); -- cgit v1.2.3