Closed (fixed)
Project:
Drupal core
Version:
9.3.x-dev
Component:
comment.module
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Sep 2021 at 22:43 UTC
Updated:
15 Oct 2021 at 18:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexpottHere's the fix from the meta.
Comment #3
larowlanI think this is fine, we should remove the todo
Comment #4
andypostIt removes 17 nitices
@larowlan does it need CR?
Comment #5
larowlanI don't think we need a CR, we're just tightening it up to satisfy the interface
Comment #6
andypostPatch without todo, the same could be done in related
Comment #7
daffie commentedLooks good to me.
Comment #8
alexpottI think this is the best fix here.
getSubject()ends up in tonnes of places that expects strings... in tokens and in places like CommentForm which does:One thing that is kinda interesting is that
::getSubject()and::label()(which is the subject for a comment) will now return different values for a NULL value.Comment #10
catchComment labels are generally very odd - holdover from pre-field API implementations in Drupal 6 and earlier. We should probably have an issue open to revisit, but not opening because I have a feeling there's already one around somewhere.
Comment #11
catchCommitted/pushed to 9.3.x (forgot to mention that).