Merge pull request #217 from zentyal/jgarcia/fix-contacts-listing

Request all contacts when there is no filter
This commit is contained in:
Enrique J. Hernández
2015-12-14 14:53:33 +01:00

View File

@@ -24,6 +24,8 @@ function openContactsFolder(contactsFolder, reload, idx) {
if (searchValue && searchValue.length > 0)
url += ("&search=" + search["contacts"]["criteria"]
+ "&value=" + escape(searchValue.utf8encode()));
else
url += "&search=name_or_address&value=.";
var sortAttribute = sorting["attribute"];
if (sortAttribute && sortAttribute.length > 0)
url += ("&sort=" + sorting["attribute"]