From dd6dd7251ca15dc5e758e733e2529003e08e7c7c Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Tue, 6 Jan 2015 13:59:20 -0500 Subject: [PATCH] Fix selection of calendar in event/task editors Fixes #3049 Fixes #3050 --- UI/Scheduler/UIxComponentEditor.m | 3 ++- UI/Templates/SchedulerUI/UIxAppointmentEditor.wox | 1 + UI/Templates/SchedulerUI/UIxTaskEditor.wox | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/UI/Scheduler/UIxComponentEditor.m b/UI/Scheduler/UIxComponentEditor.m index 60ee34c12..35a29219a 100644 --- a/UI/Scheduler/UIxComponentEditor.m +++ b/UI/Scheduler/UIxComponentEditor.m @@ -1428,7 +1428,8 @@ iRANGE(2); - (void) setComponentCalendar: (SOGoAppointmentFolder *) _componentCalendar { - ASSIGN(componentCalendar, _componentCalendar); + if (_componentCalendar) + ASSIGN(componentCalendar, _componentCalendar); } /* priorities */ diff --git a/UI/Templates/SchedulerUI/UIxAppointmentEditor.wox b/UI/Templates/SchedulerUI/UIxAppointmentEditor.wox index 75eaa046e..016175578 100644 --- a/UI/Templates/SchedulerUI/UIxAppointmentEditor.wox +++ b/UI/Templates/SchedulerUI/UIxAppointmentEditor.wox @@ -8,6 +8,7 @@ xmlns:rsrc="OGo:url" xmlns:label="OGo:label" className="UIxComponentEditor" + componentCalendar="componentCalendar" eventIsReadOnly="eventIsReadOnly" var:component="event" var:rsvpURL="rsvpURL" diff --git a/UI/Templates/SchedulerUI/UIxTaskEditor.wox b/UI/Templates/SchedulerUI/UIxTaskEditor.wox index b218023c0..770713cd0 100644 --- a/UI/Templates/SchedulerUI/UIxTaskEditor.wox +++ b/UI/Templates/SchedulerUI/UIxTaskEditor.wox @@ -8,6 +8,7 @@ xmlns:rsrc="OGo:url" xmlns:label="OGo:label" className="UIxComponentEditor" + componentCalendar="componentCalendar" eventIsReadOnly="eventIsReadOnly" var:component="todo" var:saveURL="saveURL">