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.
If an entity reference to a user is left empty the view displays it as "Anonymous" rather than just leaving the output empty, this is caused by format_username() so can be worked around by disabling "Use formatted username", but this means when there are actually users they won't be formatted either.
Comment | File | Size | Author |
---|---|---|---|
#6 | views-2514694-6.patch | 653 bytes | MustangGB |
| |||
#3 | views-2514694-3.patch | 651 bytes | MustangGB |
Comments
Comment #1
MustangGB CreditAttribution: MustangGB commentedComment #2
MustangGB CreditAttribution: MustangGB commentedComment #3
MustangGB CreditAttribution: MustangGB commentedAnd a patch.
Comment #5
rasikap CreditAttribution: rasikap at Blisstering Solutions commentedComment #6
MustangGB CreditAttribution: MustangGB commentedWell empty() matches 0, which of course should return the anonymous user.
Manually edited to use the less inclusive is_null() instead.
Comment #7
MustangGB CreditAttribution: MustangGB commentedRemoving code from summary as there are patches now.
Comment #8
DamienMcKennaBumping to the next release.
Comment #9
DamienMcKennaThis feels like an appropriate change.
Comment #11
DamienMcKennaCommitted. Thanks.