Fix exception when moving tasks

pull/218/head
Francis Lachapelle 2016-07-20 13:31:15 -04:00
parent ffa1920122
commit 4a6bdffc5b
2 changed files with 4 additions and 2 deletions

1
NEWS
View File

@ -9,6 +9,7 @@ Enhancements
Bug fixes
- [web] fixed refresh of addressbook when deleting one or many cards
- [web] reset multiple-selection mode after deleting cards, events or tasks
- [web] fixed exception when moving tasks to a different calendar
3.1.4 (2016-07-12)
------------------

View File

@ -1,6 +1,6 @@
/* SOGoCalendarComponent.m - this file is part of SOGo
*
* Copyright (C) 2006-2014 Inverse inc.
* Copyright (C) 2006-2016 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
@ -32,6 +32,7 @@
#import <NGCards/iCalCalendar.h>
#import <NGCards/iCalDateTime.h>
#import <NGCards/iCalEvent.h>
#import <NGCards/iCalToDo.h>
#import <NGMime/NGMimeBodyPart.h>
#import <NGMime/NGMimeMultipartBody.h>
#import <NGMail/NGMimeMessage.h>
@ -1275,7 +1276,7 @@
}
else
{
newUID = [[[calendar events] objectAtIndex: 0] uid];
newUID = [[[calendar allObjects] objectAtIndex: 0] uid];
}
newComponent = [[self class] objectWithName: