summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-08 17:30:34 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-08 17:30:34 +0000
commitf56949af8b2a334185f1700020787fe4016e5aa5 (patch)
treeb895f3ec1e45b8ecede264aa3d6c40dc875733e3 /lib
parentd5a00cc29b600ab2252ba5e41b2bc1e40cc77903 (diff)
downloadredmine-f56949af8b2a334185f1700020787fe4016e5aa5.tar.gz
redmine-f56949af8b2a334185f1700020787fe4016e5aa5.zip
Do not add invalid label attribute to input tags.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8564 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/views/labelled_form_builder.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/views/labelled_form_builder.rb b/lib/redmine/views/labelled_form_builder.rb
index d83df37dc..857ac066a 100644
--- a/lib/redmine/views/labelled_form_builder.rb
+++ b/lib/redmine/views/labelled_form_builder.rb
@@ -24,14 +24,14 @@ class Redmine::Views::LabelledFormBuilder < ActionView::Helpers::FormBuilder
%w(date_select)).each do |selector|
src = <<-END_SRC
def #{selector}(field, options = {})
- label_for_field(field, options) + super
+ label_for_field(field, options) + super(field, options.except(:label))
end
END_SRC
class_eval src, __FILE__, __LINE__
end
def select(field, choices, options = {}, html_options = {})
- label_for_field(field, options) + super
+ label_for_field(field, options) + super(field, choices, options, html_options.except(:label))
end
# Returns a label tag for the given field