Browse Source

Fixed error on Schedule page

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

2
app/controllers/application_controller.rb

@ -573,7 +573,7 @@ class ApplicationController < LinguaFrancaApplicationController
@schedule.each do | day, data |
@schedule[day][:times] = data[:times].sort.to_h
if do_analyze || @schedule[day][:locations].empty?
@schedule[day][:locations] ||= []
@schedule[day][:locations] ||= {}
@schedule[day][:locations][0] = :add
end

Loading…
Cancel
Save