Defect #33052 » 0002-remove-unused-issue-argument.patch
| app/controllers/timelog_controller.rb | ||
|---|---|---|
|
retrieve_time_entry_query
|
||
|
scope = time_entry_scope
|
||
|
@report = Redmine::Helpers::TimeReport.new(@project, @issue, params[:criteria], params[:columns], scope)
|
||
|
@report = Redmine::Helpers::TimeReport.new(@project, params[:criteria], params[:columns], scope)
|
||
|
respond_to do |format|
|
||
|
format.html { render :layout => !request.xhr? }
|
||
| lib/redmine/helpers/time_report.rb | ||
|---|---|---|
|
class TimeReport
|
||
|
attr_reader :criteria, :columns, :hours, :total_hours, :periods
|
||
|
def initialize(project, issue, criteria, columns, time_entry_scope)
|
||
|
def initialize(project, criteria, columns, time_entry_scope)
|
||
|
@project = project
|
||
|
@issue = issue
|
||
|
@criteria = criteria || []
|
||
|
@criteria = @criteria.select{|criteria| available_criteria.has_key? criteria}
|
||