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-owncloud/pulls/7
  • Loading branch information
LinneyS committed Oct 25, 2024
2 parents f20789e + 8aaf6fb commit a755569
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controller/editorapicontroller.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public function config($fileId, $filePath = null, $shareToken = null, $version =
"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 controller/editorcontroller.php
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,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 a755569

Please sign in to comment.