Lead title styling still displays even if field is empty

Created on 8 February 2024, 5 months ago
Updated 12 February 2024, 5 months ago

Problem/Motivation

When we leave the field lead title blank the title styling (red underline) still displays.

Steps to reproduce

1- add the field lead title to your content type
i.e. basic page, landing page etc.
2- Now add content, choose the content type i.e. basic page
3- fill in the title, body any other fields and leave the lead title blank

Proposed resolution

Need to add !empty($node->$checkFieldName->value) to the condition
if ($node instanceof NodeInterface && $node->hasField($checkFieldName)

In the following method
function wxt_bootstrap_preprocess_page_title

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: duplicate

Version

5.2

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada nancyHebert

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

Comments & Activities

Production build 0.69.0 2024