Feature #14966

"Spent Time" report: maximal criteria amount is hard-coded by now, should become configurable

Added by Egor Suvorov about 8 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Time tracking
Target version:-
Resolution:

Description

Sometimes I need to include more than three criteria in report (for example, Project->Issue->Activity->User). I was surprised to know that this constant (3) is hardcoded inside two files: /app/views/timelog/report.html.erb:27 and /lib/redmine/helpers/time_report.rb:30 .

If I want to increase this constant, I have to apply a patch to these two files (and there is no other way, since TimeReport resizes the 'criteria' array to 3 or less in initialization). It'd be better, if I can change this constant somewhere in redmine's configuration.

Also available in: Atom PDF