+ complete task #251:add files to testcase.

* adjust task and bug model code.
This commit is contained in:
fujia
2010-07-17 05:39:30 +00:00
parent 02dcd61981
commit 5a619a2ca8
8 changed files with 20 additions and 16 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ class taskModel extends model
->setIF($this->post->story != false and $this->post->story != $oldTask->story, 'storyVersion', $this->loadModel('story')->getVersion($this->post->story))
->setIF($this->post->status == 'done', 'left', 0)
->setIF($this->post->consumed > 0 and $this->post->left > 0 and $this->post->status == 'wait', 'status', 'doing')
->remove('comment,fiels,labels')
->remove('comment,files,labels')
->get();
$task->statusCustom = strpos(self::CUSTOM_STATUS_ORDER, $task->status) + 1;