* Adjust code style.

This commit is contained in:
tianshujie98
2020-11-13 08:09:21 +08:00
parent 9c0b8b1d22
commit 8a20821f92
+2 -1
View File
@@ -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()