diff --git a/SoObjects/SOGo/SOGoFolder.m b/SoObjects/SOGo/SOGoFolder.m index 286974476..4ff6d1e23 100644 --- a/SoObjects/SOGo/SOGoFolder.m +++ b/SoObjects/SOGo/SOGoFolder.m @@ -259,23 +259,24 @@ static NSString *defaultUserID = @""; - (void) sendFolderAdvisoryTemplate: (NSString *) template { - NSString *language, *pageName; + NSString *pageName; SOGoUser *user; SOGoFolderAdvisory *page; - WOApplication *app; - user = [SOGoUser userWithLogin: [[context activeUser] login] roles: nil]; - language = [user language]; + user = [context activeUser]; pageName = [NSString stringWithFormat: @"SOGoFolder%@%@Advisory", - language, template]; + [user language], template]; - app = [WOApplication application]; - page = [app pageWithName: pageName inContext: context]; + page = [[WOApplication application] pageWithName: pageName + inContext: context]; [page setFolderObject: self]; - [page setRecipientUID: [[context activeUser] login]]; + [page setRecipientUID: [user login]]; [page send]; } + +// if (!result) [self sendFolderAdvisoryTemplate: @"Addition"]; + - (BOOL) create { NSException *result; @@ -284,8 +285,6 @@ static NSString *defaultUserID = @""; withName: displayName atPath: ocsPath]; - if (!result) [self sendFolderAdvisoryTemplate: @"Addition"]; - return (result == nil); } @@ -302,11 +301,11 @@ static NSString *defaultUserID = @""; else error = [[self folderManager] deleteFolderAtPath: ocsPath]; - if (!error) [self sendFolderAdvisoryTemplate: @"Removal"]; - return error; } +// if (!error) [self sendFolderAdvisoryTemplate: @"Removal"]; + - (void) renameTo: (NSString *) newName { GCSChannelManager *cm;