Fixed label with invalid for attribute.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10128 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
15341bd844
commit
0c72347d61
|
@ -44,7 +44,7 @@ module SettingsHelper
|
||||||
setting_values = Setting.send(setting)
|
setting_values = Setting.send(setting)
|
||||||
setting_values = [] unless setting_values.is_a?(Array)
|
setting_values = [] unless setting_values.is_a?(Array)
|
||||||
|
|
||||||
setting_label(setting, options).html_safe +
|
content_tag("label", l(options[:label] || "setting_#{setting}")) +
|
||||||
hidden_field_tag("settings[#{setting}][]", '').html_safe +
|
hidden_field_tag("settings[#{setting}][]", '').html_safe +
|
||||||
choices.collect do |choice|
|
choices.collect do |choice|
|
||||||
text, value = (choice.is_a?(Array) ? choice : [choice, choice])
|
text, value = (choice.is_a?(Array) ? choice : [choice, choice])
|
||||||
|
|
Loading…
Reference in New Issue