Require node body only when necessary

Created on 25 June 2020, almost 5 years ago
Updated 9 March 2023, about 2 years ago

Motivation: I have a node type that uses paragraphs and has no filled body field. Glossify does never associate occurrences of node titles of this node type because of the following reason:

The way the nodes are fetched in NodeTooltip.php requires the nodes to have a non-empty body:

$query->addField('nb', 'body_value', 'tip');
$query->join('node__body', 'nb', 'nb.entity_id = nfd.nid');

However, the value is only used for the hover tooltip, which is optional.

Wouldn't it make sense to require the body only if the tooltip or link&tooltip option is selected?

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇩🇪Germany Harlor Berlin

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