diff --git a/app/helpers/schedule_helper.rb b/app/helpers/schedule_helper.rb index e3a7d20..8f7e80c 100644 --- a/app/helpers/schedule_helper.rb +++ b/app/helpers/schedule_helper.rb @@ -37,8 +37,8 @@ module ScheduleHelper if conflict.present? w_conflict = get_workshop(conflict, @workshops, @events) - workshop_errors[(w_conflict.is_a?(Workshop) ? 'w' : 'e') + w_conflict.id.to_s] = "Time conflict with “#{w_conflict.title}”".html_safe - workshop_errors[(w.is_a?(Workshop) ? 'w' : 'e') + w.id.to_s] = "Time conflict with “#{w.title}”".html_safe + workshop_errors[(w_conflict.is_a?(Workshop) ? 'w' : 'e') + w_conflict.id.to_s] = "Time conflict with “#{w.title}”".html_safe + workshop_errors[(w.is_a?(Workshop) ? 'w' : 'e') + w.id.to_s] = "Time conflict with “#{w_conflict.title}”".html_safe errors += 1 if workshop_errors[(w_conflict.is_a?(Workshop) ? 'w' : 'e') + w_conflict.id.to_s].nil? else schedule[day][:start_time] = hour if schedule[day][:start_time].nil? || hour < schedule[day][:start_time]