From e4aa104215b94e2b0f2547771ca9b7c26fd74704 Mon Sep 17 00:00:00 2001 From: helge Date: Fri, 13 Aug 2004 00:12:22 +0000 Subject: [PATCH] git-svn-id: http://svn.opengroupware.org/SOGo/trunk@197 d1b88da0-ebda-0310-925b-ed51d893ca5b --- SOGo/UI/Scheduler/ChangeLog | 9 ++++++--- SOGo/UI/Scheduler/UIxAppointmentEditor.m | 8 +++++++- SOGo/UI/Scheduler/Version | 2 +- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/SOGo/UI/Scheduler/ChangeLog b/SOGo/UI/Scheduler/ChangeLog index 80aed267..7487ca26 100644 --- a/SOGo/UI/Scheduler/ChangeLog +++ b/SOGo/UI/Scheduler/ChangeLog @@ -1,9 +1,12 @@ -2004-08-12 Marcus Mueller +2004-08-13 Helge Hess + + * UIxAppointmentEditor.m: catch a common programming mistake (invoking + a method on a method) (v0.9.26) - * v0.9.25 +2004-08-12 Marcus Mueller * UIxAppointmentEditor.[m|wox]: participants are added correctly - now, resources are still lacking from save. + now, resources are still lacking from save. (v0.9.25) 2004-08-12 Marcus Mueller diff --git a/SOGo/UI/Scheduler/UIxAppointmentEditor.m b/SOGo/UI/Scheduler/UIxAppointmentEditor.m index 7f0fe2cb..07ecdbb9 100644 --- a/SOGo/UI/Scheduler/UIxAppointmentEditor.m +++ b/SOGo/UI/Scheduler/UIxAppointmentEditor.m @@ -297,6 +297,12 @@ NSArray *ps; unsigned i, count; WORequest *req; + + if (![[self clientObject] respondsToSelector:@selector(saveContentString:)]){ + return [NSException exceptionWithHTTPStatus:400 /* invalid request */ + reason: + @"method cannot be invoked on the specified object"]; + } req = [[self context] request]; @@ -348,7 +354,7 @@ /* receive current representation for save operation */ iCalString = [apt iCalString]; [apt release]; apt = nil; - + { NSException *ex; diff --git a/SOGo/UI/Scheduler/Version b/SOGo/UI/Scheduler/Version index 8b283eb3..9c8dad69 100644 --- a/SOGo/UI/Scheduler/Version +++ b/SOGo/UI/Scheduler/Version @@ -1,3 +1,3 @@ # $Id$ -SUBMINOR_VERSION:=25 +SUBMINOR_VERSION:=26 -- 2.39.5