Project

General

Profile

Actions

Defect #43268

closed

Labels not displayed for form.text_area fields in Redmine with Rails 8

Added by Mizuki ISHIKAWA 1 day ago. Updated 1 day ago.

Status:
Closed
Priority:
Normal
Category:
Rails support
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
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


Related issues

Related to Redmine - Feature #43205: Update to Rails 8NewMarius BĂLTEANU

Actions
Actions

Also available in: Atom PDF