Commit a01a5622 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Fixed: Plugin's setting page is broken after upgrading to rails 2.1.0 (#1620).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1656 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 0b134383
...@@ -50,7 +50,7 @@ class SettingsController < ApplicationController ...@@ -50,7 +50,7 @@ class SettingsController < ApplicationController
flash[:notice] = l(:notice_successful_update) flash[:notice] = l(:notice_successful_update)
redirect_to :action => 'plugin', :id => params[:id] redirect_to :action => 'plugin', :id => params[:id]
end end
@partial = "../../vendor/plugins/#{plugin_id}/app/views/" + @plugin.settings[:partial] @partial = @plugin.settings[:partial]
@settings = Setting["plugin_#{plugin_id}"] @settings = Setting["plugin_#{plugin_id}"]
end end
end end
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