From 6e83ad8a42c65498c5c7c67892e6b89148164264 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 19 Sep 2006 21:05:18 +0000 Subject: [PATCH] Monotone-Parent: 7c15766f188357a9b9016c2300c2a4a7d2b95404 Monotone-Revision: 0a93903821df22cae2a8187e778326212c127114 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-09-19T21:05:18 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ UI/Contacts/UIxContactFoldersView.m | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index c2aa14e13..91e452917 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2006-09-19 Wolfgang Sourdeau + * 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. diff --git a/UI/Contacts/UIxContactFoldersView.m b/UI/Contacts/UIxContactFoldersView.m index 8b1ffccc9..36c73f9f8 100644 --- a/UI/Contacts/UIxContactFoldersView.m +++ b/UI/Contacts/UIxContactFoldersView.m @@ -23,6 +23,8 @@ #import #import +#import + #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]; }