From b8a7f2923a8f71bac8bde9a7cb04aa2636f663c6 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Tue, 13 Dec 2011 10:46:50 -0800 Subject: [PATCH] Remove arbitrary limit on the Time Entry Report columns Appears it was put in place to prevent wide reports but was actually limiting the data, especially when putting a day in each column. --- app/controllers/time_entry_reports_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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}"