Patch #43276 ยป fix-plugin-text_area-labels.patch
| lib/redmine/views/labelled_form_builder.rb | ||
|---|---|---|
|
include Redmine::I18n
|
||
|
(field_helpers.map(&:to_s) - %w(radio_button hidden_field fields_for check_box label) +
|
||
|
%w(date_selec)).each do |selector|
|
||
|
# Do not remove text_area; otherwise labels in plugins using text_area
|
||
|
# instead of textarea will disappear.
|
||
|
%w(date_select text_area)).each do |selector|
|
||
|
src = <<-END_SRC
|
||
|
def #{selector}(field, options = {})
|
||
|
label_for_field(field, options) + super(field, options.except(:label)).html_safe
|
||