Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/fulltextsearch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2022-06-07 17:38:51 +0300
committerMaxence Lange <maxence@artificial-owl.com>2022-06-07 17:38:51 +0300
commit6635aae2b246d443be0b227f472946a5ab4e2153 (patch)
tree5386178b663990220af7a2a8cad8eabfc553a98d
parentfa8120b1600dd5c2e61dd1a2a4df694c5b6a10d8 (diff)
replace displayed ownerfix/noid/replace-displayed-owner
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r--lib/Command/DocumentProvider.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Command/DocumentProvider.php b/lib/Command/DocumentProvider.php
index ff6b18e..a9f2c17 100644
--- a/lib/Command/DocumentProvider.php
+++ b/lib/Command/DocumentProvider.php
@@ -105,6 +105,9 @@ class DocumentProvider extends Base {
$index->setOwnerId($userId);
$index->setStatus(Index::INDEX_FULL);
$indexDocument = $provider->updateDocument($index);
+
+ $index->setOwnerId($indexDocument->getAccess()->getOwnerId());
+
if (!$indexDocument->hasIndex()) {
$indexDocument->setIndex($index);
}