From f47654ea82d1e418f99df107ed899664c3c6ba2e Mon Sep 17 00:00:00 2001 From: Xinhui Date: Tue, 23 May 2017 11:54:05 +0200 Subject: Fix create time_table with calendar association Refs #2347 --- app/controllers/time_tables_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/time_tables_controller.rb') diff --git a/app/controllers/time_tables_controller.rb b/app/controllers/time_tables_controller.rb index dcf8f3e5e..5c4552afb 100644 --- a/app/controllers/time_tables_controller.rb +++ b/app/controllers/time_tables_controller.rb @@ -43,7 +43,7 @@ class TimeTablesController < ChouetteController if calendar calendar.dates.each_with_index do |date, i| - @time_table.dates << Chouette::TimeTableDate.new(date: date, position: i) + @time_table.dates << Chouette::TimeTableDate.new(date: date, position: i, in_out: true) end calendar.date_ranges.each_with_index do |date_range, i| @time_table.periods << Chouette::TimeTablePeriod.new(period_start: date_range.begin, period_end: date_range.end, position: i) -- cgit v1.2.3