Skip to content

Commit

Permalink
Add a variable so I dont ended rewriting the original model
Browse files Browse the repository at this point in the history
  • Loading branch information
inietov committed Aug 24, 2023
1 parent 950536f commit a12a68e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions resources/views/models/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@
</div>

@php
if (is_null($item->id)){
$item->id = $item->getOriginal('id');
$model_id = $item->id;
if (is_null($model_id)){
$model_id = $item->getOriginal('id');
}
@endphp
<!-- Custom Fieldset -->
@livewire('custom-field-set-default-values-for-model',["model_id" => $item->id])
@livewire('custom-field-set-default-values-for-model',["model_id" => $model_id])

@include ('partials.forms.edit.notes')
@include ('partials.forms.edit.requestable', ['requestable_text' => trans('admin/models/general.requestable')])
Expand Down

0 comments on commit a12a68e

Please sign in to comment.