Skip to content

Commit

Permalink
Fix for #2093.
Browse files Browse the repository at this point in the history
  • Loading branch information
extrafu committed Nov 19, 2012
1 parent 2606787 commit a1d092c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion SOPE/NGCards/iCalCalendar.m
Expand Up @@ -212,7 +212,7 @@ - (NSString *) versitString

- (NSArray *) orderOfElements
{
return [NSArray arrayWithObjects: @"prodid", @"version", @"method", @"calscale",
return [NSArray arrayWithObjects: @"prodid", @"version", @"method", @"calscale", @"x-wr-calname",
@"vtimezone", @"vevent", @"vtodo", @"vjournal", @"vfreebusy", nil];
}

Expand Down
19 changes: 15 additions & 4 deletions SoObjects/Appointments/SOGoAppointmentFolderICS.m
@@ -1,8 +1,6 @@
/* SOGoAppointmentFolderICS.m - this file is part of SOGo
*
* Copyright (C) 2010 Inverse inc.
*
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
* Copyright (C) 2010-2012 Inverse inc.
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -22,6 +20,7 @@

#import <Foundation/NSString.h>

#import <NGCards/CardElement.h>
#import <NGCards/iCalCalendar.h>

#import "SOGoAppointmentFolderICS.h"
Expand All @@ -30,7 +29,19 @@ @implementation SOGoAppointmentFolderICS

- (NSString *) contentAsString
{
return [[self contentCalendar] versitString];
iCalCalendar *cal;
CardElement *e;
NSString *s;

cal = [self contentCalendar];

e = [CardElement simpleElementWithTag: @"x-wr-calname"
value: [self displayName]];
[cal addChild: e];
s = [cal versitString];
[cal removeChild: e];

return s;
}

- (NSString *) davContentType
Expand Down

0 comments on commit a1d092c

Please sign in to comment.