mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-21 22:32:45 +00:00
See ChangeLog
Monotone-Parent: d7098152cae36121388c0a0b60a86132b83eb7d6 Monotone-Revision: b3a500aa833d95b94e57f01645279aeda5ad3587 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2009-03-02T17:45:32 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2009-03-02 Ludovic Marcotte <lmarcotte@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/SOGoObject.m
|
||||
([SOGoObject -davRecordForUser:parameters:]):
|
||||
Don't initialize the SOGoUser variable of
|
||||
nocn AND noemail are passed.
|
||||
|
||||
2009-02-23 Ludovic Marcotte <lmarcotte@inverse.ca>
|
||||
|
||||
* Updated German translation. Patch from
|
||||
|
||||
@@ -1356,19 +1356,19 @@ SEL SOGoSelectorForPropertySetter (NSString *property)
|
||||
parameters: (NSArray *) params
|
||||
{
|
||||
NSMutableString *userRecord;
|
||||
SOGoUser *sogoUser;
|
||||
|
||||
userRecord = [NSMutableString string];
|
||||
|
||||
[userRecord appendFormat: @"<id>%@</id>",
|
||||
[user stringByEscapingXMLString]];
|
||||
sogoUser = [SOGoUser userWithLogin: user roles: nil];
|
||||
|
||||
// Make sure to not call [SOGoUser userWithLogin...] here if nocn AND noemail
|
||||
// is specified. We'll avoid generating LDAP calls by doing so.
|
||||
if (![params containsObject: @"nocn"])
|
||||
{
|
||||
NSString *cn;
|
||||
|
||||
cn = [sogoUser cn];
|
||||
cn = [[SOGoUser userWithLogin: user roles: nil] cn];
|
||||
if (!cn)
|
||||
cn = user;
|
||||
[userRecord appendFormat: @"<displayName>%@</displayName>",
|
||||
@@ -1379,7 +1379,8 @@ SEL SOGoSelectorForPropertySetter (NSString *property)
|
||||
{
|
||||
NSString *email;
|
||||
|
||||
email = [[sogoUser allEmails] objectAtIndex: 0];
|
||||
email = [[[SOGoUser userWithLogin: user roles: nil]
|
||||
allEmails] objectAtIndex: 0];
|
||||
if (email)
|
||||
[userRecord appendFormat: @"<email>%@</email>",
|
||||
[email stringByEscapingXMLString]];
|
||||
|
||||
Reference in New Issue
Block a user