Skip to content

Commit

Permalink
Clean up synclog correctly after deleting addressbook.
Browse files Browse the repository at this point in the history
Fixes #784
  • Loading branch information
evert committed Feb 20, 2016
1 parent ee2d454 commit 275e7fd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -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)
------------------

Expand Down
2 changes: 1 addition & 1 deletion lib/CardDAV/Backend/PDO.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

}
Expand Down
2 changes: 1 addition & 1 deletion lib/DAV/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ class Version {
/**
* Full version number
*/
const VERSION = '2.1.9';
const VERSION = '2.1.10';

}

0 comments on commit 275e7fd

Please sign in to comment.