I think this fixes a bug in changing conference times
This commit is contained in:
parent
d5a9b79f6e
commit
43c0d4a3f5
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ class Conference < ApplicationRecord
|
|||
event_schedules = program.event_schedules.select do |event_schedule|
|
||||
event_schedule.start_time.hour < start_hour ||
|
||||
event_schedule.end_time.hour > end_hour ||
|
||||
(event_schedule.end_time.hour == end_hour && event_schedule.end_time.minute > 0)
|
||||
(event_schedule.end_time.hour == end_hour && event_schedule.end_time.min > 0)
|
||||
end
|
||||
event_schedules.each(&:destroy)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue