mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 22:07:29 -08:00
Improve property name
This commit is contained in:
parent
f6c1642bf2
commit
038e86954b
|
@ -13,7 +13,6 @@ class CustomFieldSetDefaultValuesForModel extends Component
|
|||
public $add_default_values;
|
||||
|
||||
public $fieldset_id;
|
||||
public $fields;
|
||||
public $model_id;
|
||||
|
||||
public function mount($model_id = null)
|
||||
|
@ -30,7 +29,7 @@ class CustomFieldSetDefaultValuesForModel extends Component
|
|||
}
|
||||
|
||||
#[Computed]
|
||||
public function customFields()
|
||||
public function fields()
|
||||
{
|
||||
return CustomFieldset::find($this->fieldset_id)?->fields;
|
||||
}
|
||||
|
|
|
@ -17,9 +17,9 @@
|
|||
</div>
|
||||
|
||||
@if ($add_default_values ) {{-- 'if the checkbox is enabled *AND* there are more than 0 fields in the fieldsset' --}}
|
||||
@if ($this->customFields)
|
||||
@if ($this->fields)
|
||||
|
||||
@foreach ($this->customFields as $field)
|
||||
@foreach ($this->fields as $field)
|
||||
<div class="form-group">
|
||||
|
||||
<label class="col-md-3 control-label{{ $errors->has($field->name) ? ' has-error' : '' }}">{{ $field->name }}</label>
|
||||
|
|
Loading…
Reference in a new issue