diff --git a/resources/views/hardware/audit.blade.php b/resources/views/hardware/audit.blade.php index e089fab31..d3560a9a0 100644 --- a/resources/views/hardware/audit.blade.php +++ b/resources/views/hardware/audit.blade.php @@ -128,7 +128,7 @@ - @include ('partials.forms.edit.image-upload', ['image_path' => app('audits_upload_path'), 'help_text' => trans('general.audit_images_help')]) + @include ('partials.forms.edit.image-upload', ['help_text' => trans('general.audit_images_help')]) @include("models/custom_fields_form", [ diff --git a/resources/views/partials/forms/edit/image-upload.blade.php b/resources/views/partials/forms/edit/image-upload.blade.php index 8032cf85f..0accf2f59 100644 --- a/resources/views/partials/forms/edit/image-upload.blade.php +++ b/resources/views/partials/forms/edit/image-upload.blade.php @@ -1,28 +1,29 @@ -@if (isset($item) && ($item->{($fieldname ?? 'image')})) -