Monotone-Parent: f2ca93f05f1dd7d6b8d2096ea437d4d62ce8e785

Monotone-Revision: 57d579bea2427c6ad84d4c56e0d2fe8b5a410b4e

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-10-27T18:12:13
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-10-27 18:12:13 +00:00
parent 0f0ad02315
commit f0b0357de9
2 changed files with 15 additions and 6 deletions
+4
View File
@@ -1,5 +1,9 @@
2006-10-27 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/Contacts/UIxContactEditor.m: check whether the client contact
folder has selector "globallyUniqueObjectId" before calling that
method.
* SoObjects/Contacts/SOGoContactLDAPEntry.m ([SOGoContactLDAPEntry
-vCard]): the "setVClass" NGVCard method really is "setClass"
instead.
+11 -6
View File
@@ -521,13 +521,18 @@
Update: remember that there are group folders as well.
*/
NSString *uri, *objectId, *nextMethod;
objectId = [[[self clientObject] class] globallyUniqueObjectId];
if ([objectId length] == 0) {
id <SOGoContactFolder> co;
co = [self clientObject];
if ([[co class] respondsToSelector: @selector (globallyUniqueObjectId)])
objectId = [[[self clientObject] class] globallyUniqueObjectId];
else
objectId = nil;
if ([objectId length] == 0)
return [NSException exceptionWithHTTPStatus:500 /* Internal Error */
reason:@"could not create a unique ID"];
}
reason:@"could not create a unique ID"];
nextMethod = [NSString stringWithFormat:@"../%@/%@",
objectId, [self editActionName]];
uri = [self _completeURIForMethod:nextMethod];