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:
authorJulius Härtl <jus@bitgrid.net>2019-12-16 17:53:04 +0300
committerJulius Härtl <jus@bitgrid.net>2019-12-16 17:53:04 +0300
commit61297bdd83745214162aa5384009cfdf2b631ece (patch)
tree586c191054cc62112f5450529bf7d694ccc4df0f /lib
parent6eca8a917df53bf276e37f546f9a393d261a4449 (diff)
Use file path instead of folder for direct workspace opening
Signed-off-by: Julius Härtl <jus@bitgrid.net>
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 97b0bb92a..fb8b52cef 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($path, Application::APP_NAME);
+ $token = $this->directEditingManager->open($path . '/'. $file->getName(), Application::APP_NAME);
}
return new DataResponse([
'url' => $this->urlGenerator->linkToRouteAbsolute('files.DirectEditingView.edit', ['token' => $token])