diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-05-11 13:08:57 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-07-06 17:29:12 +0000 |
commit | 99442b60d5253f36438bd7c8e359ddc5a7ec219f (patch) | |
tree | 4e2498a46da3a2f9afec2db67f1543fad43af24c /apps/dav | |
parent | 7d8d586983bd3b889fdba63ef2d364a0db7fc749 (diff) | |
download | nextcloud-server-99442b60d5253f36438bd7c8e359ddc5a7ec219f.tar.gz nextcloud-server-99442b60d5253f36438bd7c8e359ddc5a7ec219f.zip |
fix: favorites view and universal search against tags
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/FilesReportPlugin.php | 4 |
1 files changed, 3 insertions, 1 deletions
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()); |