summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-02-19 23:03:10 +0100
committerThomas Tanghus <thomas@tanghus.net>2012-02-20 14:24:10 +0100
commit12bcbcdc62989bec8222888320aa22aeda06c82c (patch)
tree2994229fd49bd9b07ff0e88faa80a66571a82223
parent30d524b4260fe3e920b6be1f3818a0fbcbb5adfc (diff)
downloadnextcloud-server-12bcbcdc62989bec8222888320aa22aeda06c82c.tar.gz
nextcloud-server-12bcbcdc62989bec8222888320aa22aeda06c82c.zip
Update ctag in deleteFromDAVData.
-rw-r--r--apps/contacts/lib/vcard.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/contacts/lib/vcard.php b/apps/contacts/lib/vcard.php
index ece203bd458..17e95adff71 100644
--- a/apps/contacts/lib/vcard.php
+++ b/apps/contacts/lib/vcard.php
@@ -304,7 +304,7 @@ class OC_Contacts_VCard{
* @return boolean
*/
public static function delete($id){
- // FIXME: Add error checking.
+ // FIXME: Add error checking. Touch addressbook.
$stmt = OC_DB::prepare( 'DELETE FROM *PREFIX*contacts_cards WHERE id = ?' );
$stmt->execute(array($id));
@@ -329,6 +329,7 @@ class OC_Contacts_VCard{
// FIXME: Add error checking. Deleting a card gives an Kontact/Akonadi error.
$stmt = OC_DB::prepare( 'DELETE FROM *PREFIX*contacts_cards WHERE addressbookid = ? AND uri=?' );
$stmt->execute(array($aid,$uri));
+ OC_Contacts_Addressbook::touch($aid);
return true;
}