If anonymous comments are enable the comment author name will be set to the post author name.
That is, an anonymous user will see the comment name field be set "Post author name".
The problem appear to be in ajax.inc @line 78:
$output = drupal_get_form("comment_form" , $node);
In $node the the $node->name is not set. This can be fixed by appending two lines be fore the function call:
$node->name = '';
$node->uid = 0;
$output = drupal_get_form("comment_form" , $node);
Patch not attached as I am not sure this is the most elegant solution, but it works for us.
Comments
Comment #1
ken hawkins commentedAlso, helpful documentation on the comment_form function: https://api.drupal.org/api/drupal/modules%21comment%21comment.module/fun...