params is now of type ActionController::Parameters

pull/4862/head
Oliver Günther 8 years ago
parent 16afe96224
commit 40775a3e2b
  1. 2
      app/controllers/settings_controller.rb

@ -39,7 +39,7 @@ class SettingsController < ApplicationController
def edit
@notifiables = Redmine::Notifiable.all
if request.post? && params[:settings] && params[:settings].is_a?(Hash)
if request.post? && params[:settings] && params[:settings].is_a?(ActionController::Parameters)
settings = (params[:settings] || {}).dup.symbolize_keys.tap do |set|
set.except! *password_settings if OpenProject::Configuration.disable_password_login?
end

Loading…
Cancel
Save