]> err.no Git - scalable-opengroupware.org/commitdiff
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1215 d1b88da0-ebda-0310...
authorwolfgang <wolfgang@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Thu, 1 Nov 2007 22:22:00 +0000 (22:22 +0000)
committerwolfgang <wolfgang@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Thu, 1 Nov 2007 22:22:00 +0000 (22:22 +0000)
ChangeLog
SoObjects/SOGo/AgenorUserDefaults.m

index d3aeb5bc18a6933e4e70dec28635e15faf3595e5..8882bd8899efcbb33c127874a8295da02fa12226 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2007-11-01  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
 
+       * SoObjects/SOGo/AgenorUserDefaults.m ([AgenorUserDefaults
+       -primaryFetchProfile]): make sure that the deserialized "values"
+       is an instance of NSMutableDictionary, otherwise we override it
+       with one.
+
        * SoObjects/Mailer/SOGoMailObject+Draft.m ([SOGoMailObject
        -contentForReply]): make use of the SOGoMailReply WO page.
 
index 39778f76fb1db69cb4a1cb16912cb3bd708c4d6c..5c7db08dc9d8f42b72048f266a30c472fc653829 100644 (file)
@@ -158,7 +158,10 @@ static NSString *uidColumnName = @"c_uid";
                                               mutabilityOption: NSPropertyListMutableContainers
                                               format: NULL
                                               errorDescription: &error];
-             [values retain];
+             if ([values isKindOfClass: [NSMutableDictionary class]])
+               [values retain];
+             else
+               values = [NSMutableDictionary new];
            }
 
          ASSIGN (lastFetch, [NSCalendarDate date]);