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

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-12-11 13:17:35 +0300
committerGitHub <noreply@github.com>2019-12-11 13:17:35 +0300
commit9002e73e032db4054db47e94a42b5e3b24fdd5af (patch)
treee1063b563c616acdc1903eda3413b8a5ffe7a9a8 /lib
parent8f77fa2ea849432dda46b96b6f21acaa2bb75dcf (diff)
parent561f24933a841fc1e07d0761e768f41713480974 (diff)
Merge pull request #451 from nextcloud/bugfix/noid/use-filepath
Use file path to obtain workspace direct editing links
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/WorkspaceController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/WorkspaceController.php b/lib/Controller/WorkspaceController.php
index 46acbf2a7..97b0bb92a 100644
--- a/lib/Controller/WorkspaceController.php
+++ b/lib/Controller/WorkspaceController.php
@@ -178,7 +178,7 @@ class WorkspaceController extends OCSController {
if ($file === null) {
$token = $this->directEditingManager->create($path . '/'. self::SUPPORTED_FILENAMES[0], Application::APP_NAME, 'textdocument');
} else {
- $token = $this->directEditingManager->open($file->getId(), Application::APP_NAME);
+ $token = $this->directEditingManager->open($path, Application::APP_NAME);
}
return new DataResponse([
'url' => $this->urlGenerator->linkToRouteAbsolute('files.DirectEditingView.edit', ['token' => $token])