diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-12-11 11:17:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-11 11:17:26 +0100 |
commit | 9a40ccfbf0c2f4fc3f6dd13ebdb405e048959a0e (patch) | |
tree | 24c8817f5b6fa2811bc0e1f4fc66a0b936856a59 /apps/files | |
parent | 2164ef045f88533cb3ca1df3881c3cb6b78e9018 (diff) | |
parent | e29a76bc79dc252b5659e38287f07c56ffa3e314 (diff) | |
download | nextcloud-server-9a40ccfbf0c2f4fc3f6dd13ebdb405e048959a0e.tar.gz nextcloud-server-9a40ccfbf0c2f4fc3f6dd13ebdb405e048959a0e.zip |
Merge pull request #18224 from nextcloud/bugfix/noid/direct-editing-path
Use file path for direct editing
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/lib/Controller/DirectEditingController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/lib/Controller/DirectEditingController.php b/apps/files/lib/Controller/DirectEditingController.php index e8a00981327..b19d0f3ea1d 100644 --- a/apps/files/lib/Controller/DirectEditingController.php +++ b/apps/files/lib/Controller/DirectEditingController.php @@ -96,11 +96,11 @@ class DirectEditingController extends OCSController { /** * @NoAdminRequired */ - public function open(int $fileId, string $editorId = null): DataResponse { + public function open(string $path, string $editorId = null): DataResponse { $this->eventDispatcher->dispatchTyped(new RegisterDirectEditorEvent($this->directEditingManager)); try { - $token = $this->directEditingManager->open($fileId, $editorId); + $token = $this->directEditingManager->open($path, $editorId); return new DataResponse([ 'url' => $this->urlGenerator->linkToRouteAbsolute('files.DirectEditingView.edit', ['token' => $token]) ]); |