1
0
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:
Thomas Tanghus 2012-11-23 01:17:53 +01:00
parent e9de8f406b
commit c77f60f2a7

View File

@ -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();