remove-unused-issue-argument.patch

Kevin Fischer, 2020-03-03 01:34

Download (1.62 KB)

View differences:

app/controllers/timelog_controller.rb
77 77
    retrieve_time_entry_query
78 78
    scope = time_entry_scope
79 79

  
80
    @report = Redmine::Helpers::TimeReport.new(@project, @issue, params[:criteria], params[:columns], scope)
80
    @report = Redmine::Helpers::TimeReport.new(@project, params[:criteria], params[:columns], scope)
81 81

  
82 82
    respond_to do |format|
83 83
      format.html { render :layout => !request.xhr? }
lib/redmine/helpers/time_report.rb
22 22
    class TimeReport
23 23
      attr_reader :criteria, :columns, :hours, :total_hours, :periods
24 24

  
25
      def initialize(project, issue, criteria, columns, time_entry_scope)
25
      def initialize(project, criteria, columns, time_entry_scope)
26 26
        @project = project
27
        @issue = issue
28 27

  
29 28
        @criteria = criteria || []
30 29
        @criteria = @criteria.select{|criteria| available_criteria.has_key? criteria}
31
-