Skip to content

Commit

Permalink
Merge pull request 'fix: type of fileKey in reference data' from hotf…
Browse files Browse the repository at this point in the history
…ix/reference-data-filekey-to-string into develop

Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/onlyoffice-nextcloud/pulls/12
  • Loading branch information
LinneyS committed Oct 25, 2024
2 parents 5995e46 + 05cc1e0 commit b477d79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Controller/EditorApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public function config($fileId, $filePath = null, $shareToken = null, $directTok
"title" => $fileName,
"url" => $fileUrl,
"referenceData" => [
"fileKey" => $file->getId(),
"fileKey" => (string)$file->getId(),
"instanceId" => $this->config->getSystemValue("instanceid", true),
],
],
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/EditorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ public function reference($referenceData, $path = null) {
"path" => $userFolder->getRelativePath($file->getPath()),
"key" => $key,
"referenceData" => [
"fileKey" => $file->getId(),
"fileKey" => (string)$file->getId(),
"instanceId" => $this->config->getSystemValue("instanceid", true),
],
"url" => $this->getUrl($file, $user),
Expand Down

0 comments on commit b477d79

Please sign in to comment.