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.
This commit is contained in:
Eric Davis 2011-12-13 10:46:50 -08:00
parent e4554a6d7b
commit b8a7f2923a
1 changed files with 1 additions and 2 deletions

View File

@ -72,8 +72,7 @@ class TimeEntryReportsController < ApplicationController
@periods = [] @periods = []
# Date#at_beginning_of_ not supported in Rails 1.2.x # Date#at_beginning_of_ not supported in Rails 1.2.x
date_from = @from.to_time date_from = @from.to_time
# 100 columns max while date_from <= @to.to_time
while date_from <= @to.to_time && @periods.length < 100
case @columns case @columns
when 'year' when 'year'
@periods << "#{date_from.year}" @periods << "#{date_from.year}"