mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-18 01:45:25 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user