Skip to content
Snippets Groups Projects
Verified Commit 4e71d684 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #8745 refresh attachment after edition in signatureBook

parent 59ec1ec5
No related branches found
No related tags found
No related merge requests found
...@@ -318,14 +318,14 @@ class SignatureBookController ...@@ -318,14 +318,14 @@ class SignatureBookController
$attachments[$key]['icon'] = $attachmentTypes[$value['attachment_type']]['icon']; $attachments[$key]['icon'] = $attachmentTypes[$value['attachment_type']]['icon'];
$attachments[$key]['sign'] = $attachmentTypes[$value['attachment_type']]['sign']; $attachments[$key]['sign'] = $attachmentTypes[$value['attachment_type']]['sign'];
if(!in_array(strtoupper($value['format']), ['PDF', 'JPG', 'JPEG', 'PNG', 'GIF']) ){ if (!in_array(strtoupper($value['format']), ['PDF', 'JPG', 'JPEG', 'PNG', 'GIF'])) {
$isVersion = 'false'; $isVersion = 'false';
} }
if ($value['status'] == 'SIGN') { if ($value['status'] == 'SIGN') {
$attachments[$key]['viewerLink'] = "../../rest/res/{$aArgs['resId']}/attachments/{$viewerId}/content"; $attachments[$key]['viewerLink'] = "../../rest/res/{$aArgs['resId']}/attachments/{$viewerId}/content?".rand();
} else { } else {
$attachments[$key]['viewerLink'] = "../../rest/res/{$aArgs['resId']}/attachments/{$realId}/content"; $attachments[$key]['viewerLink'] = "../../rest/res/{$aArgs['resId']}/attachments/{$realId}/content?".rand();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment