From 97a0c12b5181f25616454eb5c56ea1b1b3967354 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 8 Nov 2007 18:15:07 +0000 Subject: [PATCH] Monotone-Parent: 0db07352b67a8593e8356851965bcf15a52e9c78 Monotone-Revision: 6d8175a81637bf95f5f6b69f7d64401f2a03afa0 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-11-08T18:15:07 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ SoObjects/SOGo/SOGoParentFolder.m | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6fed7866f..c6b673f5a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-11-08 Wolfgang Sourdeau + * SoObjects/SOGo/SOGoParentFolder.m ([SOGoParentFolder + -newFolderWithName:nameandNameInContainer:newNameInContainer]): + write the new folder's name in the folder cache. + * UI/Scheduler/UIxCalendarSelector.m ([UIxCalendarSelector -calendars]): same as below. diff --git a/SoObjects/SOGo/SOGoParentFolder.m b/SoObjects/SOGo/SOGoParentFolder.m index c73ed9f12..b71a0f0c5 100644 --- a/SoObjects/SOGo/SOGoParentFolder.m +++ b/SoObjects/SOGo/SOGoParentFolder.m @@ -212,7 +212,10 @@ [newFolder setOCSPath: [NSString stringWithFormat: @"%@/%@", OCSPath, newFolderID]]; if ([newFolder create]) - error = nil; + { + [subFolders setObject: newFolder forKey: name]; + error = nil; + } else error = [NSException exceptionWithHTTPStatus: 400 reason: @"The new folder could not be created"];