From 8e7683fff2ca5a60a6701c218f30bffb8c6f4f8f Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Thu, 10 Jul 2014 13:34:27 +0000 Subject: Bug 1027025: comment.creator has no real_name --- extensions/BzAPI/lib/Util.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'extensions') diff --git a/extensions/BzAPI/lib/Util.pm b/extensions/BzAPI/lib/Util.pm index c68592f70..9c553753a 100644 --- a/extensions/BzAPI/lib/Util.pm +++ b/extensions/BzAPI/lib/Util.pm @@ -234,9 +234,7 @@ sub fix_user { $data = { name => filter_email($object->login) }; - if ($user->id && $object->name) { - $data->{real_name} = $rpc->type('string', $object->name); - } + $data->{real_name} = $rpc->type('string', $object->name); } else { $data->{name} = filter_email($data->{name}); @@ -246,8 +244,6 @@ sub fix_user { $data->{ref} = $rpc->type('string', ref_urlbase . "/user/" . $object->login); } - delete $data->{real_name} if !$data->{real_name}; - return $data; } -- cgit v1.2.3-24-g4f1b