Skip to content

Commit

Permalink
Fixes #2516 - listbox error on new asset
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Aug 30, 2016
1 parent 2cfb015 commit 35a67ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/views/models/custom_fields_form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
@if ($field->element!='text')
<!-- Listbox -->
@if ($field->element=='listbox')
{{ Form::select($field->db_column_name(), $field->formatFieldValuesAsArray(), Input::old($field->db_column_name(), $asset->{$field->db_column_name()}), ['class'=>'format select2 form-control']) }}
{{ Form::select($field->db_column_name(), $field->formatFieldValuesAsArray(),
Input::old($field->db_column_name(),(isset($asset) ? $asset->{$field->db_column_name()} : "")), ['class'=>'format select2 form-control']) }}

@elseif ($field->element=='checkbox')
<!-- Checkboxes -->
Expand Down

0 comments on commit 35a67ab

Please sign in to comment.