]> err.no Git - scalable-opengroupware.org/blobdiff - UI/Scheduler/UIxTaskEditor.m
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1172 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / UI / Scheduler / UIxTaskEditor.m
index c2764a3935017114c34e53dc02b321048adff999..0258ae2d24ae6adc9256ce416215b66c6589fcd4 100644 (file)
 - (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
 
   if (hasStartDate)
     [todo setStartDate: taskStartDate];
+  else
+    [todo setStartDate: nil];
+
   if (hasDueDate)
     [todo setDue: taskDueDate];
+  else
+    [todo setDue: nil];
+
   if ([status isEqualToString: @"COMPLETED"])
     [todo setCompleted: statusDate];
   else