mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-14 04:04:03 +00:00
The `length_step` validator runs unconditionally for every record and calls `length % program.schedule_interval`. When the length field is left blank in the admin form, `length` is nil and `length %` raises NoMethodError, returning a 500 Internal Server Error instead of a regular validation failure. Skip the divisor check unless `length` is numeric so that the `numericality` validator on `:length` can produce a proper error message, restoring the usual validation feedback. |
||
|---|---|---|
| .. | ||
| booth_spec.rb | ||
| cfp_spec.rb | ||
| comment_spec.rb | ||
| commercial_spec.rb | ||
| conference_spec.rb | ||
| email_settings_spec.rb | ||
| event_schedule_spec.rb | ||
| event_spec.rb | ||
| event_type_spec.rb | ||
| openid.rb | ||
| payment_spec.rb | ||
| program_spec.rb | ||
| registration_period_spec.rb | ||
| registration_spec.rb | ||
| resource_spec.rb | ||
| role_spec.rb | ||
| room_spec.rb | ||
| schedule_spec.rb | ||
| sponsor_spec.rb | ||
| sponsorship_level_spec.rb | ||
| survey_question_spec.rb | ||
| survey_reply_spec.rb | ||
| survey_spec.rb | ||
| survey_submission_spec.rb | ||
| ticket_purchase_spec.rb | ||
| ticket_scanning_spec.rb | ||
| ticket_spec.rb | ||
| track_spec.rb | ||
| user_spec.rb | ||
| vote_spec.rb | ||