Remove table header when there is no field using an overridden label option

Created on 19 March 2024, 8 months ago
Updated 18 April 2024, 7 months ago

Problem/Motivation

When the module is enabled, it always displays the header "Label Override" in the <thead> element of the form on the Manage display page, as it can be seen on the attached screenshot. Ideally, when no field is using any overridden label option, the header should be omitted.

Steps to reproduce

Enable the module, then go to the Manage display of any content type (e.g. Basic Page).

Proposed resolution

Modify how the elements are added into the form by the hook_form_FORM_ID_alter(), not adding the header in the aforementioned situation.

User interface changes

Header "Label Override" will be omitted if no field is using any overridden label option.

API changes

None.

Data model changes

None.

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇦Canada maursilveira Windsor, ON

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024