summaryrefslogtreecommitdiffstats
path: root/extensions/BzAPI
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/BzAPI')
-rw-r--r--extensions/BzAPI/lib/Util.pm6
1 files changed, 1 insertions, 5 deletions
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;
}