mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-01 23:11:48 +00:00
Remove unused argument from Redmine::Helpers::TimeReport (#33079).
Patch by Kevin Fischer. git-svn-id: http://svn.redmine.org/redmine/trunk@21196 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a0fa4491c0
commit
ee64cb5cb1
@ -76,7 +76,7 @@ class TimelogController < ApplicationController
|
|||||||
retrieve_time_entry_query
|
retrieve_time_entry_query
|
||||||
scope = time_entry_scope
|
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|
|
respond_to do |format|
|
||||||
format.html {render :layout => !request.xhr?}
|
format.html {render :layout => !request.xhr?}
|
||||||
|
|||||||
@ -22,9 +22,8 @@ module Redmine
|
|||||||
class TimeReport
|
class TimeReport
|
||||||
attr_reader :criteria, :columns, :hours, :total_hours, :periods
|
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
|
@project = project
|
||||||
@issue = issue
|
|
||||||
|
|
||||||
@criteria = criteria || []
|
@criteria = criteria || []
|
||||||
@criteria = @criteria.select{|criteria| available_criteria.has_key? criteria}
|
@criteria = @criteria.select{|criteria| available_criteria.has_key? criteria}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user