]> source.dussan.org Git - redmine.git/commitdiff
Fixed label with invalid for attribute.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 29 Jul 2012 12:10:34 +0000 (12:10 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 29 Jul 2012 12:10:34 +0000 (12:10 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10128 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/settings_helper.rb

index ae3fe87b1b09a134b03cd39a94de21637e123f73..dd20f24c644226b1743643d755f5f7ac0915356a 100644 (file)
@@ -44,7 +44,7 @@ module SettingsHelper
     setting_values = Setting.send(setting)
     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 +
       choices.collect do |choice|
         text, value = (choice.is_a?(Array) ? choice : [choice, choice])