From 6fece5d06603c8980fb6c3d5f697163d0012ccbe Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 23 Aug 2007 22:13:27 +0000 Subject: [PATCH] Monotone-Parent: d9596f4b43a014a2c792aa15954418eac4a2fe8d Monotone-Revision: 8e549e50cb51a6b6301c7b5cf0bc1863d2610949 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-08-23T22:13:27 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ UI/Scheduler/UIxTaskEditor.m | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 01ada3ade..d12c4ea5b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-08-23 Wolfgang Sourdeau + * UI/Scheduler/UIxTaskEditor.m ([UIxTaskEditor + -shouldTakeValuesFromRequest:requestinContext:context]): same as + below. + * UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor -shouldTakeValuesFromRequest:requestinContext:context]): redesigned method since any method called can be received from a diff --git a/UI/Scheduler/UIxTaskEditor.m b/UI/Scheduler/UIxTaskEditor.m index d2c2a342c..0258ae2d2 100644 --- a/UI/Scheduler/UIxTaskEditor.m +++ b/UI/Scheduler/UIxTaskEditor.m @@ -357,8 +357,12 @@ - (BOOL) shouldTakeValuesFromRequest: (WORequest *) request inContext: (WOContext*) context { + NSString *actionName; + + actionName = [[request requestHandlerPath] lastPathComponent]; + return ([[self clientObject] isKindOfClass: [SOGoTaskObject class]] - && [[request method] isEqualToString: @"POST"]); + && [actionName hasPrefix: @"save"]); } - (void) takeValuesFromRequest: (WORequest *) _rq