1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-19 08:52:22 +01:00

Test if contact exists. Fix #304

This commit is contained in:
Thomas Tanghus 2013-12-19 22:44:03 +01:00
parent 0c4ac6546c
commit d717b1d59e

View File

@ -2343,7 +2343,10 @@ OC.Contacts = OC.Contacts || {};
var self = this;
$.each(this.$contactList.find('tr > td > input:checkbox:visible:checked'), function(idx, checkbox) {
var id = String($(checkbox).val());
contacts.push(self.contacts[id]);
var contact = self.contacts[id];
if(contact) {
contacts.push(contact);
}
});
return contacts;
};