Fixed #11120 - custom fields not showing when textarea is present as field type

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-05-18 00:47:22 -07:00
parent 54c1659210
commit ceffbb950f

View file

@ -12,7 +12,7 @@
Request::old($field->db_column_name(),(isset($item) ? Helper::gracefulDecrypt($field, htmlspecialchars($item->{$field->db_column_name()}, ENT_QUOTES)) : $field->defaultValue($model->id))), ['class'=>'format select2 form-control']) }}
@elseif ($field->element=='textarea')
<textarea class="col-md-6 form-control" id="{{ $field->db_column_name() }}" name="{{ $field->db_column_name() }}">{{ Request::old($field->db_column_name(), Helper::gracefulDecrypt($field, $item->{$field->db_column_name()}), (isset($item) ? $item->{$field->db_column_name()} : $field->defaultValue($model->id))) }}</textarea>
<textarea class="col-md-6 form-control" id="{{ $field->db_column_name() }}" name="{{ $field->db_column_name() }}">{{ Request::old($field->db_column_name(),(isset($item) ? Helper::gracefulDecrypt($field, $item->{$field->db_column_name()}) : $field->defaultValue($model->id))) }}</textarea>
@elseif ($field->element=='checkbox')
<!-- Checkboxes -->