mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-18 07:52:21 +01:00
Contacts: Make updating vcards when deleting category optional.
This commit is contained in:
parent
e9de8f406b
commit
c77f60f2a7
@ -41,10 +41,11 @@ if($fromobjects) {
|
||||
$cards[] = array($contact['id'], $contact['carddata']);
|
||||
}
|
||||
}
|
||||
debug('Before delete: '.print_r($categories, true));
|
||||
|
||||
$catman = new OC_VCategories('contact');
|
||||
$catman->delete($categories, $cards);
|
||||
debug('After delete: '.print_r($catman->categories(), true));
|
||||
OCA\Contacts\VCard::updateDataByID($cards);
|
||||
|
||||
if($fromobjects) {
|
||||
OCA\Contacts\VCard::updateDataByID($cards);
|
||||
}
|
||||
OCP\JSON::success();
|
||||
|
Loading…
x
Reference in New Issue
Block a user