Since I have updated to token-6.x-1.18 all anonymous comments appear with "Anonymous" user in spite of users writing a value in the comment form .

It seems that this value is being changed on where it does:

if (!$account->uid && empty($account->name)) {
$account->name = variable_get('anonymous', 'Anonymous');

Commenting out that assignation the comment author is correctly filled.

#1 1344766-1.patch800 bytesgorbeia
PASSED: [[SimpleTest]]: [MySQL] 200 pass(es).
[ View ]


gorbeia’s picture

new800 bytes
PASSED: [[SimpleTest]]: [MySQL] 200 pass(es).
[ View ]

This patch makes not to override $account->name.

Dave Reid’s picture

Priority:Normal» Major

Ah thanks this definitely needs to be fixed.

gorbeia’s picture

Status:Active» Needs review
Dave Reid’s picture

Status:Needs review» Fixed

Thanks, committed this to 6.x-1.x-dev:

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.