Monotone-Parent: 7c15766f188357a9b9016c2300c2a4a7d2b95404
Monotone-Revision: 0a93903821df22cae2a8187e778326212c127114 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-09-19T21:05:18 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
2e4d9d2d6d
commit
6e83ad8a42
|
@ -1,5 +1,9 @@
|
||||||
2006-09-19 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
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
|
* UI/Contacts/UIxContactEditor.m ([UIxContactEditor
|
||||||
-initSnapshot]): retrieve "contactEmail" and "contactFN" from the
|
-initSnapshot]): retrieve "contactEmail" and "contactFN" from the
|
||||||
query parameters and put their values (if any) into the snapshot.
|
query parameters and put their values (if any) into the snapshot.
|
||||||
|
|
|
@ -23,6 +23,8 @@
|
||||||
#import <Foundation/NSString.h>
|
#import <Foundation/NSString.h>
|
||||||
#import <SoObjects/Contacts/SOGoContactFolders.h>
|
#import <SoObjects/Contacts/SOGoContactFolders.h>
|
||||||
|
|
||||||
|
#import <SOGoUI/NSDictionary+URL.h>
|
||||||
|
|
||||||
#import "common.h"
|
#import "common.h"
|
||||||
|
|
||||||
#import "UIxContactFoldersView.h"
|
#import "UIxContactFoldersView.h"
|
||||||
|
@ -41,14 +43,12 @@
|
||||||
- (id) newAction
|
- (id) newAction
|
||||||
{
|
{
|
||||||
SOGoContactFolders *folders;
|
SOGoContactFolders *folders;
|
||||||
NSString *url, *contactEmail;
|
NSString *url;
|
||||||
|
|
||||||
folders = [self clientObject];
|
folders = [self clientObject];
|
||||||
contactEmail = [self queryParameterForKey: @"contactEmail"];
|
url = [NSString stringWithFormat: @"%@/new%@",
|
||||||
|
|
||||||
url = [NSString stringWithFormat: @"%@/new?contactEmail=%@",
|
|
||||||
[folders defaultSourceName],
|
[folders defaultSourceName],
|
||||||
contactEmail];
|
[[self queryParameters] asURLParameters]];
|
||||||
|
|
||||||
return [self redirectToLocation: url];
|
return [self redirectToLocation: url];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue