From 8a20821f92ff6c01a2e1332d9187b2f5a77f64cc Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Thu, 12 Nov 2020 17:10:47 +0800 Subject: [PATCH] * Adjust code style. --- module/story/model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/story/model.php b/module/story/model.php index 6f9f5534f8..239025abb5 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -1432,7 +1432,7 @@ class storyModel extends model if($message) die(js::error($message) . js::locate(helper::createLink('project', 'story', "projectID=$projectID"), 'parent')); /* Create tasks. */ - $stories = $this->dao->select('*')->from(TABLE_STORY)->where('id')->in($data->storyIdList)->fetchAll(); + $stories = $this->getByList($data->storyIdList); foreach($stories as $story) { $task = new stdclass(); @@ -1445,6 +1445,7 @@ class storyModel extends model $task->estimate = isset($data->hourPointValue) ? ($story->estimate * $data->hourPointValue) : $story->estimate; $task->openedBy = $this->app->user->account; $task->openedDate = helper::now(); + $task->desc = $story->spec; $this->dao->insert(TABLE_TASK)->data($task) ->autoCheck()