chang params

This commit is contained in:
sylor_huang@126.com 2020-05-28 11:18:04 +08:00
parent 19404c217b
commit 7ca4433a91
1 changed files with 6 additions and 5 deletions

View File

@ -272,11 +272,12 @@ 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 = params[:issue]
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?