mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 22:37:28 -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>
|
</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')])
|
||||||
|
|
Loading…
Reference in a new issue