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]; }