Add a variable so I dont ended rewriting the original model

This commit is contained in:
Ivan Nieto Vivanco 2023-08-24 15:28:12 -06:00
parent 950536f59f
commit a12a68e4e9

View file

@ -34,12 +34,13 @@
</div> </div>
@php @php
if (is_null($item->id)){ $model_id = $item->id;
$item->id = $item->getOriginal('id'); if (is_null($model_id)){
$model_id = $item->getOriginal('id');
} }
@endphp @endphp
<!-- Custom Fieldset --> <!-- 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.notes')
@include ('partials.forms.edit.requestable', ['requestable_text' => trans('admin/models/general.requestable')]) @include ('partials.forms.edit.requestable', ['requestable_text' => trans('admin/models/general.requestable')])