Fix 500 error for requests to the settings path for non-configurable plugins (#12911).

Path by Harry Garrood.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11216 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2013-01-20 13:03:55 +00:00
1 parent 253197c598
commit bb31402939
2 files changed
+26 -1

No files matched your search

+5
View File
@@ -52,6 +52,11 @@ class SettingsController < ApplicationController
def plugin
@plugin = Redmine::Plugin.find(params[:id])
unless @plugin.configurable?
render_404
return
end
if request.post?
Setting.send "plugin_#{@plugin.id}=", params[:settings]
flash[:notice] = l(:notice_successful_update)