Monotone-Parent: bdd1da1e1be522e483da3257b19a669856f518d6

Monotone-Revision: c5233a2a4e6a6abdb50191daf1eb589c9ff5cf80

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-14T21:23:31
This commit is contained in:
Wolfgang Sourdeau
2012-02-14 21:23:31 +00:00
parent 3da73073e8
commit da111aa6cc
3 changed files with 20 additions and 2 deletions
+8
View File
@@ -7,6 +7,14 @@
2012-02-14 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoUserManager.m (_compactAndCompleteContacts:):
we make sure that "source" is not nil before assigning it to the
compact record.
* SoObjects/SOGo/SQLSource.m (_lookupContactEntry:considerEmail:):
assign self as value for "source" in the returned record.
(-fetchContactsMatching): same as above.
* SoObjects/SOGo/SOGoSQLUserProfile.m (_sqlJsonRepresentation:):
removed obsolete method.
(-storeJSONProfileInDB:): we now properly escape the stored value
+4 -1
View File
@@ -817,6 +817,7 @@
NSMutableArray *emails;
NSString *uid, *email, *info;
NSNumber *isGroup;
id <SOGoSource> source;
compactContacts = [NSMutableDictionary dictionary];
while ((userEntry = [contacts nextObject]))
@@ -829,7 +830,9 @@
{
returnContact = [NSMutableDictionary dictionary];
[returnContact setObject: uid forKey: @"c_uid"];
[returnContact setObject: [userEntry objectForKey: @"source"] forKey: @"source"];
source = [userEntry objectForKey: @"source"];
if (source)
[returnContact setObject: source forKey: @"source"];
[compactContacts setObject: returnContact forKey: uid];
}
if (![[returnContact objectForKey: @"c_name"] length])
+8 -1
View File
@@ -560,6 +560,8 @@
forKey: @"numberOfSimultaneousBookings"];
}
}
[response setObject: self forKey: @"source"];
}
else
[self errorWithFormat: @"could not run SQL '%@': %@", sql, ex];
@@ -666,7 +668,12 @@
attrs = [channel describeResults: NO];
while ((row = [channel fetchAttributes: attrs withZone: NULL]))
[results addObject: row];
{
row = [row mutableCopy];
[(NSMutableDictionary *) row setObject: self forKey: @"source"];
[results addObject: row];
[row release];
}
}
else
[self errorWithFormat: @"could not run SQL '%@': %@", sql, ex];