Browse Source

Fixed error on Schedule page

development
Godwin 8 years ago
committed by GitHub
parent
commit
7d89b2689a
  1. 2
      app/controllers/application_controller.rb

2
app/controllers/application_controller.rb

@ -572,7 +572,7 @@ class ApplicationController < LinguaFrancaApplicationController
@schedule.each do | day, data |
@schedule[day][:times] = data[:times].sort.to_h
@schedule[day][:locations][0] = :add if @schedule[day][:locations].size > 0
@schedule[day][:locations][0] = :add if (@schedule[day][:locations] || []).size > 0
data[:times].each do | time, time_data |
if time_data[:type] == :workshop && time_data[:item].present? && time_data[:item][:workshops].present?

Loading…
Cancel
Save