* run cn2tw and fix a bug for batchcreate of task.

This commit is contained in:
shiyangyangwork@yahoo.cn
2011-12-01 07:17:55 +00:00
parent 1604b77d0b
commit 2194acafe5
21 changed files with 60 additions and 26 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ class taskModel extends model
$data[$i]->openedBy = $this->app->user->account;
$data[$i]->openedDate = $now;
$data[$i]->statusCustom = strpos(self::CUSTOM_STATUS_ORDER, 'wait') + 1;
if($tasks->story[$i] != '') $data[$i]->storyVersion = $this->loadModel('story')->getVersion($tasks->story[$i]);
if($tasks->story[$i] != '') $data[$i]->storyVersion = $this->loadModel('story')->getVersion($data[$i]->story);
if($tasks->assignedTo[$i] != '') $data[$i]->assignedDate = $now;
$this->dao->insert(TABLE_TASK)->data($data[$i])