From c10b9ec2e5949636de0112d252f3f64273e2ee65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Verd=C3=BA?= Date: Thu, 19 Jun 2014 11:16:47 +0100 Subject: [PATCH] FIX empty serialized settings hash bug --- app/controllers/settings_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/settings_controller.rb b/app/controllers/settings_controller.rb index ae0190c..b8e94b6 100644 --- a/app/controllers/settings_controller.rb +++ b/app/controllers/settings_controller.rb @@ -67,6 +67,8 @@ class SettingsController < ApplicationController else @partial = @plugin.settings[:partial] @settings = Setting.send "plugin_#{@plugin.id}" + settings_options = Setting.available_settings["plugin_#{@plugin.id}"] || {} + @settings = {} if @settings == "" && settings_options["serialized"] end rescue Redmine::PluginNotFound render_404 -- 1.9.1