From 19404c217b94ea01e4c7e4e8023df471fda01a52 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Thu, 28 May 2020 11:09:10 +0800 Subject: [PATCH] change update_hash --- app/controllers/issues_controller.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 80c73fa3f..7dd12e56d 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -272,11 +272,11 @@ class IssuesController < ApplicationController end def series_update - update_hash = {} - update_hash.merge(author_id: params[:author_id]) if params[:author_id].present? - update_hash.merge(fixed_version_id: params[:fixed_version_id]) if params[:fixed_version_id].present? - update_hash.merge(status_id: params[:status_id]) if params[:status_id].present? - + # update_hash = {} + # update_hash.merge(author_id: params[:author_id]) if params[:author_id].present? + # update_hash.merge(fixed_version_id: params[:fixed_version_id]) if params[:fixed_version_id].present? + # update_hash.merge(status_id: params[:status_id]) if params[:status_id].present? + update_hash = params[:issue] issue_ids = params[:ids] if issue_ids.present? if update_hash.blank?