6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/18/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#10904] Compose window address auto-completion fails with some LDAP records
*
Your Email Address
*
Spam protection
Enter the letters below:
.___. ,.__ .___.. . [__ \./ [__) | |__| [___ | [__) | | |
Comment
> If Turba is configured to search LDAP attributes that are not a part > of the displayed contact information, address auto-completion in the > compose window fails. > > For example, if I have Turba configured to search a 'nickname' > attribute, but the contact string is of the form "Firstname Lastname > <email@addess>", and I search for text that only exists in the > nickname, auto-completion will fail. This applies to searches with > many results, if one of them fits the above criteria. So, if I search > for 'Bob', and that string is in someone's nickname attribute only > (their first name is 'Robert'), no auto-completion results will be > shown at all. > > I believe this problem is in horde/js/autocomplete.js starting on > line 119. in the code that highlights the part of each > auto-completion result that matches the text you've typed so far. If > what I've typed does not appear in one of the elements in the array > 'choices', n.match(re) returns nothing, and calling each() on it on > line 123 results in an error. If I change the code to use an empty > array when n.match(re) fails, auto-completion works as I would expect: > > - n.match(re).each(function(m) { > + var matches = n.match(re); > + > + if (matches == null) { > + matches = new Array(); > + } > + > + matches.each(function(m) {
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers