diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2022-06-07 17:38:51 +0300 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2022-06-07 17:38:51 +0300 |
commit | 6635aae2b246d443be0b227f472946a5ab4e2153 (patch) | |
tree | 5386178b663990220af7a2a8cad8eabfc553a98d | |
parent | fa8120b1600dd5c2e61dd1a2a4df694c5b6a10d8 (diff) |
replace displayed ownerfix/noid/replace-displayed-owner
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r-- | lib/Command/DocumentProvider.php | 3 |
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); } |