diff --git a/resources/views/ticket/form-inputs.blade.php b/resources/views/ticket/form-inputs.blade.php index 77e2872..e55d018 100644 --- a/resources/views/ticket/form-inputs.blade.php +++ b/resources/views/ticket/form-inputs.blade.php @@ -41,7 +41,7 @@ $userPr = Auth::user()->sites ?? collect([]); @php $dataVue = [ 'name' => 'labels', - 'value' => old('labels', optional($ticket)->labels), + 'value' => old('labels', optional($ticket ?? null)->labels), 'labels' => \App\Models\Label::all() ]; @endphp @@ -55,7 +55,7 @@ $userPr = Auth::user()->sites ?? collect([]);
- +

Fichier joint 1

@@ -63,7 +63,7 @@ $userPr = Auth::user()->sites ?? collect([]); @if (isset($ticket) and $ticket->file !== null)
- +
@endif
@@ -73,7 +73,7 @@ $userPr = Auth::user()->sites ?? collect([]); @if (isset($ticket) and $ticket->file2 !== null)
- +
@endif