diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-01-29 20:46:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-29 20:46:07 +0300 |
commit | 44c344033436dd8a3f5c38fc1d21c02f7a976d23 (patch) | |
tree | 0bc866a784cd87cb56b3e4546a5fee336ebcfe1a | |
parent | bec33de3198f5741e643b0ff2502a8c6ae800f8a (diff) | |
parent | 15cd7adbbd2170407125c83bfe05332df98a917d (diff) |
Merge pull request #798 from nextcloud/bugfix/fix-reconnect-after-template
Remove template id after first save
-rw-r--r-- | lib/Controller/WopiController.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Controller/WopiController.php b/lib/Controller/WopiController.php index cca4607d..daf4e7d6 100644 --- a/lib/Controller/WopiController.php +++ b/lib/Controller/WopiController.php @@ -467,7 +467,10 @@ class WopiController extends Controller { return new JSONResponse([ 'Name' => $file->getName(), 'Url' => $url ], Http::STATUS_OK); } - + if ($wopi->hasTemplateId()) { + $wopi->setTemplateId(null); + $this->wopiMapper->update($wopi); + } return new JSONResponse(['LastModifiedTime' => Helper::toISO8601($file->getMTime())]); } catch (\Exception $e) { $this->logger->logException($e, ['level' => ILogger::ERROR, 'app' => 'richdocuments', 'message' => 'getFile failed']); |