Monotone-Parent: ff41de0005ad37b6858452da3e9c6d0cf21078af

Monotone-Revision: 9bd966b224328d78fb14df7e0b5cca2b4e4e4bfb

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-03-15T18:43:11
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2010-03-15 18:43:11 +00:00
parent 9ba010ea23
commit 1b4dca76f9
2 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,8 @@
2010-03-15 Wolfgang Sourdeau <wsourdeau@inverse.ca> 2010-03-15 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoUserFolder.m (-davUsersQuery): we invoke
"prepareDAVResponse" only when there is content to return.
* UI/Scheduler/UIxCalListingActions.m (_fixDates:): the events * UI/Scheduler/UIxCalListingActions.m (_fixDates:): the events
appearing in the month view needs to have their dates fixed too. appearing in the month view needs to have their dates fixed too.
Also, the algorithm was lightly simplified. Also, the algorithm was lightly simplified.

View File

@ -469,15 +469,13 @@
NSString *content; NSString *content;
r = [queryContext response]; r = [queryContext response];
[r prepareDAVResponse];
document = [[context request] contentAsDOMDocument]; document = [[context request] contentAsDOMDocument];
content = [self _davUsersFromQuery: document]; content = [self _davUsersFromQuery: document];
if (content) if ([content length])
{ {
[r setStatus: 207]; [r prepareDAVResponse];
if ([content length]) [r appendContentString: content];
[r appendContentString: content];
} }
else else
[r setStatus: 400]; [r setStatus: 400];