[Pkg-owncloud-commits] [php-sabredav] 02/12: Fix calendar deletion

David Prévot taffit at moszumanska.debian.org
Wed May 27 13:56:35 UTC 2015


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 c640f86fbe1000177ce28c6a7105dcb1e82f9165
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 5f2f949..9da2492 100644
--- a/lib/CalDAV/Backend/PDO.php
+++ b/lib/CalDAV/Backend/PDO.php
@@ -307,7 +307,7 @@ class PDO extends AbstractBackend implements SyncSupport, SubscriptionSupport {
         $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