Monotone-Parent: 355e6e150effcfc0fdb8c4139071a1a734173bda
Monotone-Revision: de8a628ccf75e9a2e0e0a0ce276c536a91eeb716 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-08-07T15:35:31 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
5093fb964e
commit
f2e72f108f
|
@ -1,5 +1,9 @@
|
|||
2012-08-07 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/Appointments/SOGoAptMailNotification.m (-setupValues):
|
||||
test whether each value is non-nil before adding it to the
|
||||
dictionary.
|
||||
|
||||
* OpenChange/MAPIStoreMailVolatileMessage.m (-save): restored
|
||||
registration of message url when saved.
|
||||
|
||||
|
|
|
@ -173,8 +173,8 @@
|
|||
|
||||
- (void) setupValues
|
||||
{
|
||||
NSString *sentBy, *sentByText, *description;
|
||||
NSCalendarDate *date;
|
||||
NSString *sentByText;
|
||||
id value;
|
||||
NSDictionary *sentByValues;
|
||||
SOGoUser *user;
|
||||
SOGoDateFormatter *dateFormatter;
|
||||
|
@ -184,15 +184,18 @@
|
|||
[viewTZ retain];
|
||||
|
||||
values = [NSMutableDictionary new];
|
||||
[values setObject: [self summary] forKey: @"Summary"];
|
||||
value = [self summary];
|
||||
if (!value)
|
||||
value = @"";
|
||||
[values setObject: value forKey: @"Summary"];
|
||||
if (organizerName)
|
||||
{
|
||||
[values setObject: organizerName forKey: @"Organizer"];
|
||||
|
||||
sentBy = [[apt organizer] sentBy];
|
||||
if ([sentBy length])
|
||||
value = [[apt organizer] sentBy];
|
||||
if (value)
|
||||
{
|
||||
sentByValues = [NSDictionary dictionaryWithObject: sentBy
|
||||
sentByValues = [NSDictionary dictionaryWithObject: value
|
||||
forKey: @"SentBy"];
|
||||
sentByText
|
||||
= [sentByValues keysWithFormat: [self
|
||||
|
@ -201,29 +204,36 @@
|
|||
}
|
||||
else
|
||||
sentByText = @"";
|
||||
|
||||
[values setObject: sentByText forKey: @"SentByText"];
|
||||
}
|
||||
|
||||
dateFormatter = [[context activeUser] dateFormatterInContext: context];
|
||||
|
||||
date = [self newStartDate];
|
||||
[values setObject: [dateFormatter shortFormattedDate: date]
|
||||
value = [self newStartDate];
|
||||
if (value)
|
||||
{
|
||||
[values setObject: [dateFormatter shortFormattedDate: value]
|
||||
forKey: @"StartDate"];
|
||||
if (![apt isAllDay])
|
||||
[values setObject: [dateFormatter formattedTime: date]
|
||||
[values setObject: [dateFormatter formattedTime: value]
|
||||
forKey: @"StartTime"];
|
||||
}
|
||||
|
||||
date = [self newEndDate];
|
||||
[values setObject: [dateFormatter shortFormattedDate: date]
|
||||
value = [self newEndDate];
|
||||
if (value)
|
||||
{
|
||||
[values setObject: [dateFormatter shortFormattedDate: value]
|
||||
forKey: @"EndDate"];
|
||||
if (![apt isAllDay])
|
||||
[values setObject: [dateFormatter formattedTime: date]
|
||||
[values setObject: [dateFormatter formattedTime: value]
|
||||
forKey: @"EndTime"];
|
||||
}
|
||||
|
||||
description = [[self apt] comment];
|
||||
[values setObject: (description ? description : @"")
|
||||
forKey: @"Description"];
|
||||
|
||||
value = [[self apt] comment];
|
||||
if (!value)
|
||||
value = @"";
|
||||
[values setObject: value forKey: @"Description"];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue