[Pkg-owncloud-commits] [php-sabredav] 01/05: Clean up synclog correctly after deleting addressbook.

David Prévot taffit at moszumanska.debian.org
Fri Mar 11 17:59:04 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch 2.1
in repository php-sabredav.

commit 275e7fdabb1f4b209e0c90159e646407975f6833
Author: Evert Pot <me at evertpot.com>
Date:   Sat Feb 20 16:46:02 2016 -0500

    Clean up synclog correctly after deleting addressbook.
    
    Fixes #784
---
 ChangeLog.md                | 7 +++++++
 lib/CardDAV/Backend/PDO.php | 2 +-
 lib/DAV/Version.php         | 2 +-
 3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/ChangeLog.md b/ChangeLog.md
index bd1af1a..02e04d9 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,6 +1,13 @@
 ChangeLog
 =========
 
+2.1.10 (????-??-??)
+-------------------
+
+* #784: Sync logs for address books were not correctly cleaned up after
+  deleting them.
+
+
 2.1.9 (2016-01-25)
 ------------------
 
diff --git a/lib/CardDAV/Backend/PDO.php b/lib/CardDAV/Backend/PDO.php
index 5ea092b..a836510 100644
--- a/lib/CardDAV/Backend/PDO.php
+++ b/lib/CardDAV/Backend/PDO.php
@@ -206,7 +206,7 @@ class PDO extends AbstractBackend implements SyncSupport {
         $stmt = $this->pdo->prepare('DELETE FROM ' . $this->addressBooksTableName . ' WHERE id = ?');
         $stmt->execute([$addressBookId]);
 
-        $stmt = $this->pdo->prepare('DELETE FROM '.$this->addressBookChangesTableName.' WHERE id = ?');
+        $stmt = $this->pdo->prepare('DELETE FROM '.$this->addressBookChangesTableName.' WHERE addressbookid = ?');
         $stmt->execute([$addressBookId]);
 
     }
diff --git a/lib/DAV/Version.php b/lib/DAV/Version.php
index afe2aa8..7804e06 100644
--- a/lib/DAV/Version.php
+++ b/lib/DAV/Version.php
@@ -14,6 +14,6 @@ class Version {
     /**
      * Full version number
      */
-    const VERSION = '2.1.9';
+    const VERSION = '2.1.10';
 
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-php/php-sabredav.git



More information about the Pkg-owncloud-commits mailing list