mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-30 19:52:17 +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']);
|
$cards[] = array($contact['id'], $contact['carddata']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
debug('Before delete: '.print_r($categories, true));
|
|
||||||
|
|
||||||
$catman = new OC_VCategories('contact');
|
$catman = new OC_VCategories('contact');
|
||||||
$catman->delete($categories, $cards);
|
$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();
|
OCP\JSON::success();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user