The preprocess_field_multiple_value_form hook breaks the TableDrag functionality

Created on 3 December 2024, 4 months ago
Updated 2 February 2025, 2 months ago

The "require_on_publish_preprocess_field_multiple_value_form"hook breaks the TableDrag functionality. Hook overrides the header defined in the core "template_preprocess_field_multiple_value_form". Starting from core version 10.2, an additional cell is added. Along with this, the header was also updated in the original preprocess: https://github.com/drupal/drupal/blame/d2476271d596911aaf6f9ee251cf6e83c.... However, in the "require_on_publish_preprocess_field_multiple_value_form" preprocess, the header wasn’t updated accordingly.

Steps to reproduce

  • Create a Paragraph with some fields
  • Add the Paragraph as a reference field to any entity type and enable multiple values for this field
  • Check the entity add/edit form

Proposed resolution

Update the header in the "require_on_publish_preprocess_field_multiple_value_form" preprocess to make it compatible with the updated core preprocess

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024