mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-24 04:45:24 +00:00
Monotone-Parent: 7c15766f188357a9b9016c2300c2a4a7d2b95404
Monotone-Revision: 0a93903821df22cae2a8187e778326212c127114 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-09-19T21:05:18 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
2006-09-19 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/Contacts/UIxContactFoldersView.m ([UIxContactFoldersView
|
||||
-newAction]): transfer all the query parameters by using the
|
||||
"asURLParameters"'s result string from [self queryParameters].
|
||||
|
||||
* UI/Contacts/UIxContactEditor.m ([UIxContactEditor
|
||||
-initSnapshot]): retrieve "contactEmail" and "contactFN" from the
|
||||
query parameters and put their values (if any) into the snapshot.
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
#import <Foundation/NSString.h>
|
||||
#import <SoObjects/Contacts/SOGoContactFolders.h>
|
||||
|
||||
#import <SOGoUI/NSDictionary+URL.h>
|
||||
|
||||
#import "common.h"
|
||||
|
||||
#import "UIxContactFoldersView.h"
|
||||
@@ -41,14 +43,12 @@
|
||||
- (id) newAction
|
||||
{
|
||||
SOGoContactFolders *folders;
|
||||
NSString *url, *contactEmail;
|
||||
NSString *url;
|
||||
|
||||
folders = [self clientObject];
|
||||
contactEmail = [self queryParameterForKey: @"contactEmail"];
|
||||
|
||||
url = [NSString stringWithFormat: @"%@/new?contactEmail=%@",
|
||||
url = [NSString stringWithFormat: @"%@/new%@",
|
||||
[folders defaultSourceName],
|
||||
contactEmail];
|
||||
[[self queryParameters] asURLParameters]];
|
||||
|
||||
return [self redirectToLocation: url];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user