Skip to content

Commit

Permalink
Merge pull request #3060 from benwbrum/3046-metadata-field-not-saving
Browse files Browse the repository at this point in the history
Remove whitespace to fix #3046
  • Loading branch information
saracarl authored Mar 28, 2022
2 parents 124dc03 + bf7e93f commit ad90d09
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
-elsif field.input_type == "date"
=text_field_tag "fields[#{field.id}][#{field.label}]", content, class: 'field-input edtf', data: { inputmask: '"alias": "datetime", "inputFormat": "isoDate"'}
-elsif field.input_type == "select"
-options = field.options.split(";") unless field.options.nil?
-options = field.options.split(";").map{|option| option.strip} unless field.options.nil?
=select_tag("fields[#{field.id}][#{field.label}]", options_for_select(options, content), class: 'field-input')
-elsif field.input_type == "multiselect"
/ add aria label
Expand Down

0 comments on commit ad90d09

Please sign in to comment.