Skip to content

Commit

Permalink
Merge pull request #11140 from snipe/fixes/11120_textarea_on_fieldset
Browse files Browse the repository at this point in the history
Fixed #11120 - custom fields not showing when textarea is present as field type
  • Loading branch information
snipe authored May 18, 2022
2 parents 54c1659 + ceffbb9 commit 7880e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/models/custom_fields_form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 -->
Expand Down

0 comments on commit 7880e15

Please sign in to comment.