aboutsummaryrefslogtreecommitdiffstats
path: root/lib/main.js
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan@mozilla.com>2010-05-31 01:04:28 -0400
committerEhsan Akhgari <ehsan@mozilla.com>2010-05-31 01:04:28 -0400
commit5939fa3a907f9dd91193dea3d2e61f1ba64a84ce (patch)
tree9857deb0faf788ab1b86636dfbb001b665c93eef /lib/main.js
parentced6558b039bd1369715f94fc4cf902076082389 (diff)
downloadbugzilla-triage-5939fa3a907f9dd91193dea3d2e61f1ba64a84ce.tar.gz
Don't show an empty name in the CC autocomplete list
Diffstat (limited to 'lib/main.js')
-rw-r--r--lib/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/main.js b/lib/main.js
index 8b4181a..09cd0ae 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -1067,7 +1067,7 @@ function autoCompleteUser(doc, field, multiple) {
// Use a maximum of 100 elements
results.users.splice(100, 999999);
results.users.forEach(function (user) {
- suggs.push({label: user.real_name,
+ suggs.push({label: user.real_name || user.name,
value: prefix + user.name});
});
success(suggs);