Actions
Defect #43268
closedLabels not displayed for form.text_area fields in Redmine with Rails 8
Defect #43268:
Labels not displayed for form.text_area fields in Redmine with Rails 8
Resolution:
Affected version:
Description
When using the latest Redmine (Rails 8), the labels for Summary and Description are not displayed on the “Create News” page, even though the Title label appears as expected.
Steps to Reproduce:- Use the latest Redmine running on Rails 8.
- Open the New News creation page
- Observe that the Title label is visible, but Summary and Description labels are missing.
| Expected | Result |
|---|---|
|
|
Redmine overrides methods in app/lib/redmine/views/labelled_form_builder.rb so that a label is automatically added when using field helpers( https://github.com/redmine/redmine/blob/b84fe00f9daeea6d0f43bb1127444a94034ff403/lib/redmine/views/labelled_form_builder.rb#L25-L32 ), without explicitly adding a <label> tag.
However, a recent change in Rails 8 replaced textarea with text_area in field_helpers
(see rails/rails#52467 ).
Because Redmine currently expects textarea to be present, form.text_area no longer triggers automatic label generation.
Files
Actions