Patch #9037 » 0001-Fixed-setting_label-use-for-HTML-attribute.patch
app/helpers/settings_helper.rb | ||
---|---|---|
76 | 76 | |
77 | 77 |
def setting_label(setting, options={}) |
78 | 78 |
label = options.delete(:label) |
79 |
label != false ? content_tag("label", l(label || "setting_#{setting}")) : '' |
|
79 |
label != false ? content_tag("label", |
|
80 |
l(label || "setting_#{setting}"), |
|
81 |
:for => "settings_#{setting}") : '' |
|
80 | 82 |
end |
81 | 83 | |
82 | 84 |
# Renders a notification field for a Redmine::Notifiable option |