Adds filters for regular/custom fields to the time entries list/report (#10191).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10970 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-12-09 19:18:57 +00:00
parent 093ecdfc73
commit 9dc07d4790
4 changed files with 54 additions and 4 deletions
+2 -2
View File
@@ -39,7 +39,7 @@ class TimelogController < ApplicationController
helper :queries
def index
@query = TimeEntryQuery.build_from_params(params, :name => '_')
@query = TimeEntryQuery.build_from_params(params, :project => @project, :name => '_')
scope = time_entry_scope
sort_init(@query.sort_criteria.empty? ? [['spent_on', 'desc']] : @query.sort_criteria)
@@ -90,7 +90,7 @@ class TimelogController < ApplicationController
end
def report
@query = TimeEntryQuery.build_from_params(params, :name => '_')
@query = TimeEntryQuery.build_from_params(params, :project => @project, :name => '_')
scope = time_entry_scope
@report = Redmine::Helpers::TimeReport.new(@project, @issue, params[:criteria], params[:columns], scope)