mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-14 01:38:51 +00:00
Monotone-Parent: 188f677989080c34ae076500016b9830247f2cbe
Monotone-Revision: 20ca7f13f9a91f5f53ebdc147c167f8c3c8704d1 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-08-21T17:45:35 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
2006-08-21 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/Contacts/UIxContactEditorBase.m: invokes
|
||||
globallyUniqueObjectId on the clientobject's class instead of the
|
||||
hardcoded "SOGoFolder".
|
||||
|
||||
* UI/Contacts/UIxContactFoldersView.m ([UIxContactFoldersView
|
||||
-newAction]): redirect the "new" action to the personal (default)
|
||||
contact folder.
|
||||
|
||||
* SoObjects/SOGo/SOGoObject.m ([SOGoObject
|
||||
+objectWithName:inContainer:]): new constructor.
|
||||
|
||||
|
||||
@@ -299,7 +299,7 @@
|
||||
*/
|
||||
NSString *uri, *objectId, *nextMethod;
|
||||
|
||||
objectId = [NSClassFromString(@"SOGoContactFolder") globallyUniqueObjectId];
|
||||
objectId = [[[self clientObject] class] globallyUniqueObjectId];
|
||||
if ([objectId length] == 0) {
|
||||
return [NSException exceptionWithHTTPStatus:500 /* Internal Error */
|
||||
reason:@"could not create a unique ID"];
|
||||
|
||||
@@ -38,6 +38,21 @@
|
||||
return [self redirectToLocation: [folders defaultSourceName]];
|
||||
}
|
||||
|
||||
- (id) newAction
|
||||
{
|
||||
SOGoContactFolders *folders;
|
||||
NSString *url, *contactEmail;
|
||||
|
||||
folders = [self clientObject];
|
||||
contactEmail = [self queryParameterForKey: @"contactEmail"];
|
||||
|
||||
url = [NSString stringWithFormat: @"%@/new?contactEmail=%@",
|
||||
[folders defaultSourceName],
|
||||
contactEmail];
|
||||
|
||||
return [self redirectToLocation: url];
|
||||
}
|
||||
|
||||
- (id) selectAction
|
||||
{
|
||||
SOGoContactFolders *folders;
|
||||
|
||||
@@ -14,6 +14,11 @@
|
||||
protectedBy = "View";
|
||||
pageName = "UIxContactFoldersView";
|
||||
};
|
||||
new = {
|
||||
protectedBy = "View";
|
||||
pageName = "UIxContactFoldersView";
|
||||
actionName = "new";
|
||||
};
|
||||
select = {
|
||||
protectedBy = "View";
|
||||
pageName = "UIxContactFoldersView";
|
||||
|
||||
Reference in New Issue
Block a user