3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-05 19:35:29 +00:00

Check that signature exists on the server before trying to display

This commit is contained in:
snipe
2026-01-14 14:21:41 +00:00
parent e05ecd0c3e
commit 90b1ee4805

View File

@ -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,