Project

General

Profile

Defect #17217 » fix_empty_settings.patch

patch - David Verdú, 2014-06-19 12:22

View differences:

app/controllers/settings_controller.rb
67 67
    else
68 68
      @partial = @plugin.settings[:partial]
69 69
      @settings = Setting.send "plugin_#{@plugin.id}"
70
      settings_options = Setting.available_settings["plugin_#{@plugin.id}"] || {}
71
      @settings = {} if @settings == "" && settings_options["serialized"]
70 72
    end
71 73
  rescue Redmine::PluginNotFound
72 74
    render_404
(3-3/3)