* fix bug #30.

This commit is contained in:
wangchunsheng
2010-02-24 06:08:34 +00:00
parent 80f41d74fe
commit cb09791376

View File

@@ -47,8 +47,9 @@ class taskModel extends model
->check('name', 'notempty')
->checkIF($task->estimate != '', 'estimate', 'float')
->exec();
if(!dao::isError()) $taskID = $this->dao->lastInsertID();
if($this->post->story) $this->loadModel('story')->setStage($this->post->story);
if(!dao::isError()) return $this->dao->lastInsertID();
return $taskID;
}
/* 更新一个任务。*/