From 49f320e49f12a6cc827e372395353aad4e110e01 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 29 Sep 2006 18:12:00 +0000 Subject: [PATCH] Monotone-Parent: a8d6eb0ca6fa812a331b038a4ecdf6505a002412 Monotone-Revision: 052f9de55b5ccfe5944c8d715ee190708be0140e Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-09-29T18:12:00 Monotone-Branch: ca.inverse.sogo --- UI/Contacts/UIxContactEditor.m | 8 +++++++- UI/Templates/ContactsUI/UIxContactEditor.wox | 3 +-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/UI/Contacts/UIxContactEditor.m b/UI/Contacts/UIxContactEditor.m index 76ea1b709..1efa8b096 100644 --- a/UI/Contacts/UIxContactEditor.m +++ b/UI/Contacts/UIxContactEditor.m @@ -366,6 +366,11 @@ return @"edit"; } +- (NSString *) contactUID +{ + return [[self clientObject] nameInContainer]; +} + - (CardElement *) _elementWithTag: (NSString *) tag ofType: (NSString *) type { @@ -468,7 +473,8 @@ { [self _saveSnapshot]; [contact save]; - result = self; + + result = [self redirectToLocation: @".."]; } else result = [NSException exceptionWithHTTPStatus: 400 /* Bad Request */ diff --git a/UI/Templates/ContactsUI/UIxContactEditor.wox b/UI/Templates/ContactsUI/UIxContactEditor.wox index 5d46965c3..fd0bc099d 100644 --- a/UI/Templates/ContactsUI/UIxContactEditor.wox +++ b/UI/Templates/ContactsUI/UIxContactEditor.wox @@ -339,7 +339,6 @@ -