aboutsummaryrefslogtreecommitdiffstats
path: root/lib/main.js
diff options
context:
space:
mode:
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);