From a8aee9d5d23ce0a557f7d694bbe9ee4ec3932d15 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 23 Jul 2008 17:40:51 +0000 Subject: [PATCH] Monotone-Parent: 314258a347f9d34b19270de4e4ee70dbd2489cb7 Monotone-Revision: 9693d35d6d0414d7e000361f72935cb32a05e608 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-07-23T17:40:51 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 9 +++++++++ SoObjects/Appointments/SOGoCalendarComponent.m | 7 +------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3e1dd012a..052fa7ed3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2008-07-23 Wolfgang Sourdeau + + * SoObjects/Appointments/SOGoCalendarComponent.m + ([SOGoCalendarComponent -secureContentAsString]): use a mutable + copy of the calendar in order to be able to modify it, otherwise + SOGo crashes. + ([-isFolderish]): removed method, so that the components won't be + listed as DAV collections. + 2008-07-21 Wolfgang Sourdeau * SoObjects/SOGo/SOGoContentObject.m ([SOGoContentObject diff --git a/SoObjects/Appointments/SOGoCalendarComponent.m b/SoObjects/Appointments/SOGoCalendarComponent.m index 7b3567084..dbdffaf56 100644 --- a/SoObjects/Appointments/SOGoCalendarComponent.m +++ b/SoObjects/Appointments/SOGoCalendarComponent.m @@ -155,7 +155,7 @@ static BOOL sendEMailNotifications = NO; else if (![sm validatePermission: SOGoCalendarPerm_ViewDAndT onObject: self inContext: context]) { - tmpCalendar = [[self calendar: NO secure: NO] copy]; + tmpCalendar = [[self calendar: NO secure: NO] mutableCopy]; tmpComponent = (iCalRepeatableEntityObject *) [tmpCalendar firstChildWithTag: [self componentTag]]; [self _filterComponent: tmpComponent]; @@ -240,11 +240,6 @@ _occurenceHasID (iCalRepeatableEntityObject *occurence, NSString *recID) return newOccurence; } -- (BOOL) isFolderish -{ - return YES; -} - - (id) toManyRelationshipKeys { return nil;