Browse Source

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
tags/1.4.0
Jean-Philippe Lang 12 years ago
parent
commit
f56949af8b
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lib/redmine/views/labelled_form_builder.rb

+ 2
- 2
lib/redmine/views/labelled_form_builder.rb View File

@@ -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

Loading…
Cancel
Save