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:
parent
0c4ac6546c
commit
d717b1d59e
@ -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;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user