Use address books search fields in Contacts module

Searches can now be scoped to one or multiple fields. Those fields are
now dynamic and can be defined using SearchFieldNames in external
contacts sources (SQL and LDAP).
This commit is contained in:
Francis Lachapelle
2017-11-21 15:56:16 -05:00
parent aed62cab26
commit eb90760b39
19 changed files with 275 additions and 137 deletions
@@ -43,7 +43,7 @@
$Card: Card,
$$Acl: Acl,
$Preferences: Preferences,
$query: {search: 'name_or_address', value: '', sort: 'c_cn', asc: 1},
$query: {value: '', sort: 'c_cn', asc: 1},
activeUser: Settings.activeUser(),
selectedFolder: null,
$refreshTimeout: null
@@ -497,7 +497,7 @@
query.value = search;
return _this.$id().then(function(addressbookId) {
var futureData = AddressBook.$$resource.fetch(addressbookId, 'view', query);
var futureData = AddressBook.$$resource.post(addressbookId, 'view', query);
if (dry) {
return futureData.then(function(response) {