mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Add a variable so I dont ended rewriting the original model
This commit is contained in:
parent
950536f59f
commit
a12a68e4e9
|
@ -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')])
|
||||
|
|
Loading…
Reference in a new issue