diff --git a/app/controllers/time_entry_reports_controller.rb b/app/controllers/time_entry_reports_controller.rb index 02cde03a..7ef009c6 100644 --- a/app/controllers/time_entry_reports_controller.rb +++ b/app/controllers/time_entry_reports_controller.rb @@ -72,8 +72,7 @@ class TimeEntryReportsController < ApplicationController @periods = [] # Date#at_beginning_of_ not supported in Rails 1.2.x date_from = @from.to_time - # 100 columns max - while date_from <= @to.to_time && @periods.length < 100 + while date_from <= @to.to_time case @columns when 'year' @periods << "#{date_from.year}"