Fixed #8558 - error on asset acceptance when no sig is required

This commit is contained in:
snipe 2020-10-23 05:09:03 -07:00
parent f5a0726f98
commit f2aebe5f9a

View file

@ -94,7 +94,7 @@ class AcceptanceController extends Controller {
if (!Storage::exists('private_uploads/signatures')) Storage::makeDirectory('private_uploads/signatures', 775); if (!Storage::exists('private_uploads/signatures')) Storage::makeDirectory('private_uploads/signatures', 775);
$sig_filename = '';
if ($request->filled('signature_output')) { if ($request->filled('signature_output')) {
$sig_filename = "siglog-" .Str::uuid() . '-'.date('Y-m-d-his').".png"; $sig_filename = "siglog-" .Str::uuid() . '-'.date('Y-m-d-his').".png";
$data_uri = e($request->input('signature_output')); $data_uri = e($request->input('signature_output'));