From 8aaf6fb6b2f4d1c14753cc7929f74af713858805 Mon Sep 17 00:00:00 2001 From: rivexe Date: Fri, 25 Oct 2024 11:00:47 +0300 Subject: [PATCH] fix: type of fileKey in reference data --- controller/editorapicontroller.php | 2 +- controller/editorcontroller.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/editorapicontroller.php b/controller/editorapicontroller.php index 3f91a0d3..cb0cb5c6 100644 --- a/controller/editorapicontroller.php +++ b/controller/editorapicontroller.php @@ -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), ], ], diff --git a/controller/editorcontroller.php b/controller/editorcontroller.php index 517b73a0..d59a8a9d 100644 --- a/controller/editorcontroller.php +++ b/controller/editorcontroller.php @@ -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),