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

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-05-14 09:11:52 +0300
committerJulius Härtl <jus@bitgrid.net>2021-05-14 09:11:52 +0300
commit2d7d1a6a64e781fee99a2f9f31f264bca1e2008a (patch)
treeabce05494155a62baad295284ed47bc326ce6553 /lib
parentb9319c126a1dc10d876374bc759f330ad570b946 (diff)
Pass template id a the proper parameter
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/TokenManager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/TokenManager.php b/lib/TokenManager.php
index 90eb420a..503c25e9 100644
--- a/lib/TokenManager.php
+++ b/lib/TokenManager.php
@@ -280,7 +280,7 @@ class TokenManager {
$serverHost = $this->urlGenerator->getAbsoluteURL('/');
if ($this->capabilitiesService->hasTemplateSource()) {
- $wopi = $this->wopiMapper->generateFileToken($targetFile->getId(), $owneruid, $editoruid, 0, $updatable, $serverHost, null, 0, false, $direct, false, $templateFile->getId());
+ $wopi = $this->wopiMapper->generateFileToken($targetFile->getId(), $owneruid, $editoruid, 0, $updatable, $serverHost, null, 0, false, $direct, $templateFile->getId());
} else {
// Legacy way of creating new documents from a template
$wopi = $this->wopiMapper->generateFileToken($templateFile->getId(), $owneruid, $editoruid, 0, $updatable, $serverHost, null, $targetFile->getId(), $direct);