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:
parent
e4554a6d7b
commit
b8a7f2923a
|
@ -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}"
|
||||||
|
|
Loading…
Reference in New Issue