The user name displayed in the admin/comment report comes from the comments table. However, a registered user could have changed his name.

This could be fixed by using the following line in the loop that builds the table rows:

  $comment->name = $comment->uid ? $comment->registered_name : $comment->name;

This trick is used in many other places of the comments module.

...is that report correct showing a user name that is no longer valid? Imagine joe (uid 10) is renamed to john, and then peter (uid 11) renamed to joe. That report will show comments made by joe, where some are made by uid 10 and some made by uid 11.

Is this diagnostic correct?

CommentFileSizeAuthor
#1 comment.module.name_in_list.patch726 bytesmarkus_petrux
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

markus_petrux’s picture

Status: Active » Needs review
FileSize
726 bytes

This patch will show the current user name, which is the same behaviour applied in other places of the module.

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community
killes@www.drop.org’s picture

Status: Reviewed & tested by the community » Fixed

applied.

Anonymous’s picture

Status: Fixed » Closed (fixed)