* UpDate it.

This commit is contained in:
shiyangyangwork@yahoo.cn
2011-04-15 06:30:48 +00:00
parent a47848fd7c
commit a297b12cc3
+10 -2
View File
@@ -383,8 +383,16 @@ class projectModel extends model
$assignedToes[$task->assignedTo] = $task->project;
$stories[$task->story] = $task->story;
$status = $task->consumed > 0 ? 'doing' : 'wait';
$this->dao->update(TABLE_TASK)->set('project')->eq($projectID)->set('status')->eq($status)->where('id')->in($this->post->tasks)->exec();
$data = new stdclass();
$data->project = $projectID;
$data->status = $task->consumed > 0 ? 'doing' : 'wait';
if($task->status == 'cancel')
{
$data->canceledBy = '';
$data->canceledDate = NULL;
}
$this->dao->update(TABLE_TASK)->data($data)->where('id')->in($this->post->tasks)->exec();
$this->loadModel('action')->create('task', $task->id, 'moved', '', $task->project);
}