Comment form cause PHP warning on strip_tags

Created on 4 January 2024, 5 months ago

Problem/Motivation

The parent issue is also happening with Drupal 9.5 and PHP 8.1. If you choose to not use the comment_body field of the module and you submit a comment, it will cause a PHP warning with an empty strip_tags parameter.

Proposed resolution

At a minimum, we should add a test: !$comment->comment_body->isEmpty() as applied on the parent issue to prevent the warning.

https://git.drupalcode.org/project/drupal/-/merge_requests/5871/diffs#35...

🐛 Bug report
Status

Postponed: needs info

Version

9.5

Component
Comment 

Last updated 2 days ago

Created by

🇫🇷France t.maquin

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

Comments & Activities

Production build 0.69.0 2024