From 0809a3bbe3d5acbb05760d515645301259cc6e65 Mon Sep 17 00:00:00 2001 From: Kevin Fischer Date: Mon, 2 Mar 2020 10:28:12 +0900 Subject: Remove unused issue argument --- app/controllers/timelog_controller.rb | 2 +- lib/redmine/helpers/time_report.rb | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb index 4c4e7df79..ae9f8c996 100644 --- a/app/controllers/timelog_controller.rb +++ b/app/controllers/timelog_controller.rb @@ -77,7 +77,7 @@ class TimelogController < ApplicationController 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? } diff --git a/lib/redmine/helpers/time_report.rb b/lib/redmine/helpers/time_report.rb index eb6abed04..6ef80fe36 100644 --- a/lib/redmine/helpers/time_report.rb +++ b/lib/redmine/helpers/time_report.rb @@ -22,9 +22,8 @@ module Redmine 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} -- 2.21.1 (Apple Git-122.3)