app/models/tramway/event/participant_form_field.rb in tramway-event-1.9.31.1 vs app/models/tramway/event/participant_form_field.rb in tramway-event-1.9.31.2

- old
+ new

@@ -6,8 +6,8 @@ enumerize :field_type, in: %i[text string numeric date_picker select], default: :text scope :inputs_list, -> { active.order(position: :asc) } def required - options&.dig('validations', 'presence') == 'true' + options.present? && options.dig('validations', 'presence') == 'true' end end