osem-fcy/app
Asish Kumar 11e7c27759 Avoid crash validating event type with blank length
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.
2026-05-14 09:18:39 +05:30
..
assets Fix bug in initial scheduling of events 2025-01-30 14:37:55 +01:00
controllers Fix parameter generation for activating a schedule 2026-03-18 13:11:17 +01:00
datatables Use CSS-compatible row IDs in datatables 2022-09-13 11:06:22 -07:00
helpers Fix various typos 2025-10-15 11:15:47 +00:00
jobs Add frozen_string_literal magic comment 2018-05-09 06:54:26 -07:00
mailers Rubocop autocorrections 2018-11-16 09:06:05 -08:00
models Avoid crash validating event type with blank length 2026-05-14 09:18:39 +05:30
pdfs Drop Organization Feature 2024-06-07 17:42:08 +02:00
serializers Merge pull request #3090 from AndrewKvalheim/api-time-zone 2023-04-19 13:36:12 +02:00
uploaders Rename deprecated CarrierWave methods 2021-08-18 14:10:31 +02:00
views Fix parameter generation for activating a schedule 2026-03-18 13:11:17 +01:00