From 2de531a6cb04ce66f1cda606ae0d18a502f0c41f Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 19 Jul 2012 01:30:43 +0000 Subject: [PATCH] Monotone-Parent: 8b81870c2b6bc608846d32e8e0b91c60d47ebb6a Monotone-Revision: 7a12a4fc3471976029528f54b57e6999eff2b3aa Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-07-19T01:30:43 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ OpenChange/MAPIStoreCalendarFolder.m | 3 +++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 00401f0c2..3beb9b626 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2012-07-18 Wolfgang Sourdeau + * OpenChange/MAPIStoreCalendarFolder.m (-createMessage): attach a + WOContext to the newEntry in order to enable page templates + resolution when notifications are sent. + * OpenChange/MAPIApplication.m (-init): a WEResourceManager is setup for the application so that page templates can be properly be initialized. diff --git a/OpenChange/MAPIStoreCalendarFolder.m b/OpenChange/MAPIStoreCalendarFolder.m index 71dcddb4e..f35918596 100644 --- a/OpenChange/MAPIStoreCalendarFolder.m +++ b/OpenChange/MAPIStoreCalendarFolder.m @@ -35,6 +35,7 @@ #import "MAPIStoreCalendarContext.h" #import "MAPIStoreCalendarMessage.h" #import "MAPIStoreCalendarMessageTable.h" +#import "MAPIStoreUserContext.h" #import "NSString+MAPIStore.h" #import "MAPIStoreCalendarFolder.h" @@ -67,6 +68,8 @@ newEntry = [SOGoAppointmentObject objectWithName: name inContainer: sogoObject]; [newEntry setIsNew: YES]; + /* the WOContext is required here for resolving notification pages */ + [newEntry setContext: [[self userContext] woContext]]; newMessage = [MAPIStoreCalendarMessage mapiStoreObjectWithSOGoObject: newEntry inContainer: self];