Commit 97342325 authored by Sean McGivern's avatar Sean McGivern
Browse files

Merge branch 'fix_jira_integration_VCS1019' into 'master'

Fix comparing equality between `ActionController::Parameters` and a `Hash`....

Closes #57221

See merge request gitlab-org/gitlab-ce!24896
parents 55cb4bc9 72b59d6e
......@@ -72,7 +72,7 @@ def service_params
dynamic_params = @service.event_channel_names + @service.event_names # rubocop:disable Gitlab/ModuleWithInstanceVariables
service_params = params.permit(:id, service: allowed_service_params + dynamic_params)
if service_params[:service].is_a?(Hash)
if service_params[:service].is_a?(ActionController::Parameters)
FILTER_BLANK_PARAMS.each do |param|
service_params[:service].delete(param) if service_params[:service][param].blank?
title: Fix Jira Service password validation on project integration services.
merge_request: 24896
author: Daniel Juarez
type: fixed
......@@ -152,6 +152,16 @@ def do_put
expect(service.namespace).not_to eq('updated_namespace')
context 'when activating JIRA service from a template' do
let(:template_service) { create(:jira_service, project: project, template: true) }
it 'activate JIRA service from template' do
put :update, params: { namespace_id: project.namespace, project_id: project, id: service.to_param, service: { active: true } }
expect(flash[:notice]).to eq 'JIRA activated.'
describe "GET #edit" do
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment