Lead title styling still displays even if field is empty

Created on 12 February 2024, 10 months ago
Updated 2 March 2024, 10 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

Fixed

Version

5.2

Component

Code

Created by

🇨🇦Canada SKAUGHT

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

Comments & Activities

Production build 0.71.5 2024