From 7161d17c4254364f1c2298fa5a573ff30613b2e8 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Mon, 1 Apr 2024 16:32:31 -0300 Subject: [PATCH] fix: array structure The array $files is the root array, the array $data is added to signers array Signed-off-by: Vitor Mattos --- lib/Db/SignRequestMapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Db/SignRequestMapper.php b/lib/Db/SignRequestMapper.php index bbb2cf9ed2..2b6061c961 100644 --- a/lib/Db/SignRequestMapper.php +++ b/lib/Db/SignRequestMapper.php @@ -545,7 +545,7 @@ private function associateAllAndFormat(IUser $user, array $files, array $signers if ($data['me']) { $data['sign_uuid'] = $signer->getUuid(); - $data['url'] = $this->urlGenerator->linkToRoute('libresign.page.getPdfFile', ['uuid' => $signer->getuuid()]); + $files[$key]['url'] = $this->urlGenerator->linkToRoute('libresign.page.getPdfFile', ['uuid' => $signer->getuuid()]); } if ($signer->getSigned()) {