diff --git a/ChangeLog.md b/ChangeLog.md index bd1af1a533..02e04d9218 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 5ea092b1e6..a836510992 100644 --- a/lib/CardDAV/Backend/PDO.php +++ b/lib/CardDAV/Backend/PDO.php @@ -206,7 +206,7 @@ function deleteAddressBook($addressBookId) { $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 afe2aa8a24..7804e069f9 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'; }