diff --git a/app/Http/Transformers/ActionlogsTransformer.php b/app/Http/Transformers/ActionlogsTransformer.php index 6e4e4d93cd..bc3f044d35 100644 --- a/app/Http/Transformers/ActionlogsTransformer.php +++ b/app/Http/Transformers/ActionlogsTransformer.php @@ -188,7 +188,7 @@ class ActionlogsTransformer ] : null, 'quantity' => $this->getQuantity($actionlog), 'note' => ($actionlog->note) ? Helper::parseEscapedMarkedownInline($actionlog->note): null, - 'signature_file' => ($actionlog->accept_signature) ? route('log.signature.view', ['filename' => $actionlog->accept_signature ]) : null, + 'signature_file' => (($actionlog->accept_signature) && Storage::exists('private_uploads/signatures/'.$actionlog->accept_signature)) ? route('log.signature.view', ['filename' => $actionlog->accept_signature ]) : null, 'log_meta' => ((isset($clean_meta)) && (is_array($clean_meta))) ? $clean_meta: null, 'remote_ip' => e($actionlog->remote_ip) ?? null, 'user_agent' => e($actionlog->user_agent) ?? null,