mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-28 15:09:40 -08:00
Merge pull request #10545 from inietov/fixes/unable_to_add_asset_model
Fixes #10536 Unable to add asset model (v6.0.0-RC-1)
This commit is contained in:
commit
8813f55770
|
@ -17,6 +17,10 @@ class CustomFieldSetDefaultValuesForModel extends Component
|
||||||
|
|
||||||
public function mount()
|
public function mount()
|
||||||
{
|
{
|
||||||
|
if(is_null($this->model_id)){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$this->model = AssetModel::find($this->model_id); // It's possible to do some clever route-model binding here, but let's keep it simple, shall we?
|
$this->model = AssetModel::find($this->model_id); // It's possible to do some clever route-model binding here, but let's keep it simple, shall we?
|
||||||
$this->fieldset_id = $this->model->fieldset_id;
|
$this->fieldset_id = $this->model->fieldset_id;
|
||||||
|
|
||||||
|
|
|
@ -34,9 +34,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Custom Fieldset -->
|
<!-- Custom Fieldset -->
|
||||||
@if (isset($item->id))
|
@livewire('custom-field-set-default-values-for-model',["model_id" => $item->id])
|
||||||
@livewire('custom-field-set-default-values-for-model',["model_id" => $item->id])
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@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