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:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user