Do not require programs languages in controller

We did not set this in ProposalController#create so it was empty
if we the event validation failed and we rendered :new.

It makes little sense to assign this instance variable anyway, we already have
@program.
This commit is contained in:
Henne Vogelsang 2024-07-01 14:23:08 +02:00
parent ee4e88a755
commit e339133c56
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
3 changed files with 1 additions and 7 deletions

View file

@ -32,7 +32,7 @@
- if @program.languages.present?
.form-group
= f.label :language
= f.select :language, @languages, { include_blank: false}, { class: 'select-help-toggle form-control' }
= f.select :language, @program.languages_list, { include_blank: false}, { class: 'select-help-toggle form-control' }
= render 'shared/select_help_text', f: f, for: :event_type_id, options: @conference.program.event_types do |event_type|
= event_type.description
- if display_details