apps/calendar: update ctag after deleteFromDAVData

Without this clients won't see the update because they compare ctags
before fetching the actual calendar to reduce traffic.

Signed-off-by: Florian Pritz <bluewind@xinu.at>
This commit is contained in:
Florian Pritz 2012-02-19 21:24:53 +01:00
parent 87627c7a50
commit 9d2379742b
1 changed files with 1 additions and 0 deletions

View File

@ -194,6 +194,7 @@ class OC_Calendar_Object{
public static function deleteFromDAVData($cid,$uri){ public static function deleteFromDAVData($cid,$uri){
$stmt = OC_DB::prepare( 'DELETE FROM *PREFIX*calendar_objects WHERE calendarid = ? AND uri=?' ); $stmt = OC_DB::prepare( 'DELETE FROM *PREFIX*calendar_objects WHERE calendarid = ? AND uri=?' );
$stmt->execute(array($cid,$uri)); $stmt->execute(array($cid,$uri));
OC_Calendar_Calendar::touchCalendar($cid);
return true; return true;
} }