From f56949af8b2a334185f1700020787fe4016e5aa5 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 8 Jan 2012 17:30:34 +0000 Subject: 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 --- lib/redmine/views/labelled_form_builder.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/redmine/views/labelled_form_builder.rb') 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 -- cgit v1.2.3