summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2014-07-10 15:34:27 +0200
committerDavid Lawrence <dkl@mozilla.com>2014-07-10 15:34:27 +0200
commit8e7683fff2ca5a60a6701c218f30bffb8c6f4f8f (patch)
tree4cd77b4ce6d0f5f0462f08dc96812147c94ed726 /extensions
parent8209b52ddc2f33b2aada95c69c3679cde14f574c (diff)
downloadbugzilla-8e7683fff2ca5a60a6701c218f30bffb8c6f4f8f.tar.gz
bugzilla-8e7683fff2ca5a60a6701c218f30bffb8c6f4f8f.tar.xz
Bug 1027025: comment.creator has no real_name
Diffstat (limited to 'extensions')
-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;
}