[Tickets #10913] Autocompleter uses "email"-field only
bugs at horde.org
bugs at horde.org
Tue Jan 10 12:19:03 UTC 2012
BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE
E-MAIL-ADRESSE WERDEN NICHT GELESEN.
Ticket-URL: http://bugs.horde.org/ticket/10913
------------------------------------------------------------------------------
Ticket | 10913
Erstellt Von | michael.groene at zel.uni-hannover.de
Zusammenfassung | Autocompleter uses "email"-field only
Warteschlange | IMP
Version | 5.0.17
Typ | Bug
Status | Unconfirmed
Priorität | 1. Low
Milestone |
Patch |
Zuständige |
------------------------------------------------------------------------------
michael.groene at zel.uni-hannover.de (2012-01-10 12:19) hat geschrieben:
I was irritated by the results of the Autocompleter in IMP once more...
Our global addressbook contains just work-mailaddresses, so I
configured turbas database-backend accordingly.
It was like this in backends.local.php:
** snip **
'homePostalCode' => 'postcode',
'workEmail' => 'email_zew',
'workPhone' => 'phone_zew',
** snip **
'search'=>array('name','workEmail'),
** snip **
Now I found out the reason, why the autocompleter completely ignored
this source (lib/imp/Ajax/Imple/ContactAutoCompleter.php:46ff):
foreach ($sparams['fields'] as $val) {
array_map('strtolower', $val);
sort($val);
if ($val != array('email', 'name')) {
$success = false;
break;
}
}
So at least the keys email and name have to be present in source.
I think this should be mentioned somewhere in documentation, is it?
Or maybe even better, the autocompleter would accept different
mail-fields, e.g. all fields, marked as type="email" in attributes.php?
More information about the bugs
mailing list