Monotone-Parent: 7badfbd8d1cd3b2ebe83f81b973b4ebf210af8a2

Monotone-Revision: e93263338b262449e660e63e963ca0e8fdc1ecb4

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2007-11-19T19:17:44
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2007-11-19 19:17:44 +00:00
parent 51d672c0f2
commit 9e786a5153
2 changed files with 12 additions and 8 deletions

View File

@@ -64,12 +64,17 @@
[statusDate release];
[status release];
[statusPercent release];
[todo release];
[super dealloc];
}
/* template values */
- (iCalToDo *) todo
{
if (!todo) {
todo = (iCalToDo *) [[self clientObject] component: NO secure: NO];
[todo retain];
}
return todo;
}
@@ -432,10 +437,11 @@
- (id) changeStatusAction
{
SOGoTaskObject *clientObject;
NSString *newStatus, *iCalString;
NSString *newStatus;
clientObject = [self clientObject];
todo = (iCalToDo *) [clientObject component: NO secure: NO];
[todo retain];
if (todo)
{
newStatus = [self queryParameterForKey: @"status"];
@@ -447,12 +453,10 @@
[todo setPercentComplete: @"0"];
[todo setStatus: @"IN-PROCESS"];
}
iCalString = [[clientObject calendar: NO secure: NO] versitString];
[clientObject saveContentString: iCalString];
[clientObject saveComponent: todo];
}
return self;
return [self responseWith204];
}
@end