[Pkg-owncloud-commits] [php-sabredav] 55/66: Fix calendar deletion
David Prévot
taffit at moszumanska.debian.org
Wed May 27 13:56:57 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag 3.0.0-alpha1
in repository php-sabredav.
commit c5852704d67aa21e47c31baf68b2f8e769b78b97
Author: Thibaud Courtoison <do.not.press.enter at gmail.com>
Date: Mon May 11 11:18:53 2015 +0200
Fix calendar deletion
Deleting calendar previously didn't deleted every occurrence of the calendar in the Calendar Changes table, but only the one with the id corresponding to the calendarId (even with no link between them)
---
lib/CalDAV/Backend/PDO.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/CalDAV/Backend/PDO.php b/lib/CalDAV/Backend/PDO.php
index 3eba8ef..9b6c809 100644
--- a/lib/CalDAV/Backend/PDO.php
+++ b/lib/CalDAV/Backend/PDO.php
@@ -309,7 +309,7 @@ class PDO extends AbstractBackend implements SyncSupport, SubscriptionSupport, S
$stmt = $this->pdo->prepare('DELETE FROM '.$this->calendarTableName.' WHERE id = ?');
$stmt->execute([$calendarId]);
- $stmt = $this->pdo->prepare('DELETE FROM '.$this->calendarChangesTableName.' WHERE id = ?');
+ $stmt = $this->pdo->prepare('DELETE FROM '.$this->calendarChangesTableName.' WHERE calendarid = ?');
$stmt->execute([$calendarId]);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list