Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The comment author field gets the name property from the comment. However this property only has a value if an anonymous user has entered his or her name whilst creating the comment.
Instead the field should use the getAuthorName() method on the comment entity.
Comment | File | Size | Author |
---|---|---|---|
#2 | ds_comment-author_2919055_2.patch | 1.49 KB | wesleydv |
Comments
Comment #2
wesleydv CreditAttribution: wesleydv at District09 commentedThe attached patch should fix the issue.
Comment #3
wesleydv CreditAttribution: wesleydv at District09 commentedComment #4
effortDee CreditAttribution: effortDee commentedIs this the same as author/submiited by not showing as a field on comment types if DS is used?
Comment #5
szantog CreditAttribution: szantog as a volunteer commentedYou shouldn't switch to DsFieldBase, Field does the same.Nevermind, I told nothing.
Comment #6
szantog CreditAttribution: szantog as a volunteer commentedAnother approach + a small improvement: #2941900: Link comment author
Comment #7
swentel CreditAttribution: swentel at eps & kaas for Dropsolid commentedComment #8
swentel CreditAttribution: swentel at eps & kaas commentedWill fix this in #2941900: Link comment author