From 4a6bdffc5bf6925ac9ea99b8fd6f2c70661f53c3 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Wed, 20 Jul 2016 13:31:15 -0400 Subject: [PATCH] Fix exception when moving tasks --- NEWS | 1 + SoObjects/Appointments/SOGoCalendarComponent.m | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 71d09700f..0d2b53b4a 100644 --- a/NEWS +++ b/NEWS @@ -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) ------------------ diff --git a/SoObjects/Appointments/SOGoCalendarComponent.m b/SoObjects/Appointments/SOGoCalendarComponent.m index 49a779bec..e5d85886c 100644 --- a/SoObjects/Appointments/SOGoCalendarComponent.m +++ b/SoObjects/Appointments/SOGoCalendarComponent.m @@ -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 #import #import +#import #import #import #import @@ -1275,7 +1276,7 @@ } else { - newUID = [[[calendar events] objectAtIndex: 0] uid]; + newUID = [[[calendar allObjects] objectAtIndex: 0] uid]; } newComponent = [[self class] objectWithName: