diff --git a/module/action/lang/en.php b/module/action/lang/en.php index a046338073..559ce4a0f5 100755 --- a/module/action/lang/en.php +++ b/module/action/lang/en.php @@ -97,6 +97,7 @@ $lang->action->desc->diff2 = 'changed %s, the d $lang->action->desc->diff3 = "changed file's name %s to %s."; $lang->action->desc->starttesttask = '$date, $actor start testtask $extra.' . "\n"; $lang->action->desc->stoptesttask = '$date, $actor stop testtask $extra.' . "\n"; +$lang->action->desc->createbuild = '$date, $actor create build $extra.' . "\n"; /* The action labels. */ $lang->action->label = new stdclass(); diff --git a/module/action/lang/zh-cn.php b/module/action/lang/zh-cn.php index 1687d65c49..a94fb4a2c1 100755 --- a/module/action/lang/zh-cn.php +++ b/module/action/lang/zh-cn.php @@ -97,6 +97,7 @@ $lang->action->desc->diff2 = '修改了 %s, $lang->action->desc->diff3 = '将文件名 %s 改为 %s 。' . "\n"; $lang->action->desc->starttesttask = '$date, 由 $actor 启动测试任务 $extra。' . "\n"; $lang->action->desc->stoptesttask = '$date, 由 $actor 关闭测试任务 $extra。' . "\n"; +$lang->action->desc->createbuild = '$date, 由 $actor 创建版本 $extra。' . "\n"; /* 用来显示动态信息。*/ $lang->action->label = new stdclass(); diff --git a/module/build/control.php b/module/build/control.php index f255d7efbb..dadd3440bb 100644 --- a/module/build/control.php +++ b/module/build/control.php @@ -25,6 +25,7 @@ class build extends control $buildID = $this->build->create($projectID); if(dao::isError()) die(js::error(dao::getError())); $this->loadModel('action')->create('build', $buildID, 'opened'); + $actionID = $this->action->create('project', $projectID, 'createbuild', '', $buildID); die(js::locate($this->createLink('project', 'build', "project=$projectID"), 'parent')); }