mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-07 06:18:50 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user