Project

General

Profile

Patch #11496 ยป 0010-Fixed-setting_label-use-for-HTML-attribute.patch

Alex Shulgin, 2012-07-24 14:16

View differences:

app/helpers/settings_helper.rb
78 78

  
79 79
  def setting_label(setting, options={})
80 80
    label = options.delete(:label)
81
    label != false ? content_tag("label", l(label || "setting_#{setting}")).html_safe : ''
81
    label != false ? content_tag("label",
82
                                 l(label || "setting_#{setting}"),
83
                                 :for => "settings_#{setting}").html_safe : ''
82 84
  end
83 85

  
84 86
  # Renders a notification field for a Redmine::Notifiable option
    (1-1/1)