From fd18c519387dcf9676f6f65fce2e2be68473d494 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 3 Dec 2011 10:06:41 +0000 Subject: Adds tests for plugin settings editing. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8039 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/settings_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/controllers') diff --git a/app/controllers/settings_controller.rb b/app/controllers/settings_controller.rb index a8b119229..257b90321 100644 --- a/app/controllers/settings_controller.rb +++ b/app/controllers/settings_controller.rb @@ -51,12 +51,12 @@ class SettingsController < ApplicationController def plugin @plugin = Redmine::Plugin.find(params[:id]) if request.post? - Setting["plugin_#{@plugin.id}"] = params[:settings] + Setting.send "plugin_#{@plugin.id}=", params[:settings] flash[:notice] = l(:notice_successful_update) redirect_to :action => 'plugin', :id => @plugin.id else @partial = @plugin.settings[:partial] - @settings = Setting["plugin_#{@plugin.id}"] + @settings = Setting.send "plugin_#{@plugin.id}" end rescue Redmine::PluginNotFound render_404 -- cgit v1.2.3