diff --git a/module/bug/lang/en.php b/module/bug/lang/en.php index 89262b2539..b4206596b9 100644 --- a/module/bug/lang/en.php +++ b/module/bug/lang/en.php @@ -300,4 +300,5 @@ $lang->bug->report->bugHistories->graph->xAxisName = 'Histories'; /* 操作记录。*/ $lang->bug->action->resolved = array('main' => '$date, Resolved by $actor, resolution is $extra.', 'extra' => $lang->bug->resolutionList); -$lang->bug->action->tostory = array('main' => '$date, To story by $actor, ID is $extra。'); +$lang->bug->action->tostory = array('main' => '$date, To story by $actor, ID is $extra.'); +$lang->bug->action->totask = array('main' => '$date, To task by $actor, ID is $extra.'); diff --git a/module/bug/lang/zh-cn.php b/module/bug/lang/zh-cn.php index a077b512bc..9574603535 100644 --- a/module/bug/lang/zh-cn.php +++ b/module/bug/lang/zh-cn.php @@ -301,3 +301,4 @@ $lang->bug->report->bugHistories->graph->xAxisName = '处理步骤'; /* 操作记录。*/ $lang->bug->action->resolved = array('main' => '$date, 由 $actor 解决,方案为 $extra。', 'extra' => $lang->bug->resolutionList); $lang->bug->action->tostory = array('main' => '$date, 由 $actor 转化为需求,编号为 $extra。'); +$lang->bug->action->totask = array('main' => '$date, 由 $actor 导入为任务,编号为 $extra。'); diff --git a/module/project/model.php b/module/project/model.php index 1f97e79cd1..15b95c0ea0 100644 --- a/module/project/model.php +++ b/module/project/model.php @@ -648,6 +648,7 @@ class projectModel extends model $taskID = $this->dao->lastInsertID(); if($task->story != false) $this->story->setStage($task->story); $actionID = $this->loadModel('action')->create('task', $taskID, 'Opened', ''); + $this->action->create('bug', $key, 'Totask', '', $taskID); $this->dao->update(TABLE_BUG)->set('toTask')->eq($taskID)->where('id')->eq($key)->exec(); $mails[$key]->taskID = $taskID; $mails[$key]->actionID = $actionID;