Drupal core 10.3.6 warning for comment replies

Created on 23 October 2024, about 1 month ago

Problem/Motivation

In drupal core 10.3.6 the issue has been merged https://www.drupal.org/node/221761 which removes the comment-reply links when a comment is unpublished.

In Open Social this causes a warning
Warning: Undefined array key "title" in template_preprocess_links() (line 681 of core/includes/theme.inc).

Steps to reproduce

- Clean install
- Create a topic
- Create comment under it and unpublish it

Proposed resolution

In our social_comment we are setting the link without first properly checking if it exists. Causing us to set the comment-reply even though there is nothing in it. So we need to add a defensive check here.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

13.0

Component

Code (back-end)

Created by

🇳🇱Netherlands robertragas

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

Comments & Activities

Production build 0.71.5 2024