Vote #74432
未完了"Spent Time" report: maximal criteria amount is hard-coded by now, should become configurable
0%
説明
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.