@@ -24,14 +24,14 class Redmine::Views::LabelledFormBuilder < ActionView::Helpers::FormBuilder | |||
|
24 | 24 | %w(date_select)).each do |selector| |
|
25 | 25 | src = <<-END_SRC |
|
26 | 26 | def #{selector}(field, options = {}) |
|
27 | label_for_field(field, options) + super | |
|
27 | label_for_field(field, options) + super(field, options.except(:label)) | |
|
28 | 28 | end |
|
29 | 29 | END_SRC |
|
30 | 30 | class_eval src, __FILE__, __LINE__ |
|
31 | 31 | end |
|
32 | 32 | |
|
33 | 33 | def select(field, choices, options = {}, html_options = {}) |
|
34 | label_for_field(field, options) + super | |
|
34 | label_for_field(field, options) + super(field, choices, options, html_options.except(:label)) | |
|
35 | 35 | end |
|
36 | 36 | |
|
37 | 37 | # Returns a label tag for the given field |
General Comments 0
You need to be logged in to leave comments.
Login now