* Fix bug #12714.
This commit is contained in:
@@ -146,6 +146,7 @@ $lang->action->desc->diff3 = 'Dateiname %s wurde geändert zu %s .' . "
|
||||
$lang->action->desc->linked2bug = '$date Verknüpft mit <strong>$extra</strong> von <strong>$actor</strong>';
|
||||
$lang->action->desc->resolved = '$date, resolved by <strong>$actor</strong> ' . "\n";
|
||||
$lang->action->desc->managed = '$date, by <strong>$actor</strong> managed.' . "\n";
|
||||
$lang->action->desc->estimated = '$date, by <strong>$actor</strong> estimated。' . "\n";
|
||||
|
||||
/* 子任务修改父任务的历史操作记录 */
|
||||
$lang->action->desc->createchildren = '$date, <strong>$actor</strong> created a child task <strong>$extra</strong>。' . "\n";
|
||||
@@ -254,6 +255,7 @@ $lang->action->label->deletechildrenstory = "delete children story";
|
||||
$lang->action->label->tracked = 'tracked';
|
||||
$lang->action->label->hangup = 'hangup';
|
||||
$lang->action->label->run = 'run';
|
||||
$lang->action->label->estimated = 'estimated';
|
||||
|
||||
/* 动态信息按照对象分组 */
|
||||
$lang->action->dynamicAction = new stdclass;
|
||||
@@ -314,6 +316,7 @@ $lang->action->dynamicAction->story['undeleted'] = 'Restore Story';
|
||||
$lang->action->dynamicAction->story['hidden'] = 'Hide Story';
|
||||
$lang->action->dynamicAction->story['linked2execution'] = "Link Story";
|
||||
$lang->action->dynamicAction->story['unlinkedfromexecution'] = "Unlink Story";
|
||||
$lang->action->dynamicAction->story['estimated'] = "Estimate $lang->SRCommon";
|
||||
|
||||
$lang->action->dynamicAction->execution['opened'] = 'Create ' . $lang->executionCommon;
|
||||
$lang->action->dynamicAction->execution['edited'] = 'Edit ' . $lang->executionCommon;
|
||||
|
||||
@@ -150,6 +150,7 @@ $lang->action->desc->diff3 = 'File Name %s was changed to %s .' . "\n";
|
||||
$lang->action->desc->linked2bug = '$date, linked to <strong>$extra</strong> by <strong>$actor</strong>';
|
||||
$lang->action->desc->resolved = '$date, resolved by <strong>$actor</strong> ' . "\n";
|
||||
$lang->action->desc->managed = '$date, by <strong>$actor</strong> managed.' . "\n";
|
||||
$lang->action->desc->estimated = '$date, by <strong>$actor</strong> estimated。' . "\n";
|
||||
|
||||
/* Used to describe the history of operations related to parent-child tasks. */
|
||||
$lang->action->desc->createchildren = '$date, <strong>$actor</strong> created a child task <strong>$extra</strong>。' . "\n";
|
||||
@@ -258,6 +259,7 @@ $lang->action->label->deletechildrenstory = "delete children story";
|
||||
$lang->action->label->tracked = 'tracked';
|
||||
$lang->action->label->hangup = 'hangup';
|
||||
$lang->action->label->run = 'run';
|
||||
$lang->action->label->estimated = 'estimated';
|
||||
|
||||
/* Dynamic information is grouped by object. */
|
||||
$lang->action->dynamicAction = new stdclass;
|
||||
@@ -318,6 +320,7 @@ $lang->action->dynamicAction->story['undeleted'] = 'Restore Story';
|
||||
$lang->action->dynamicAction->story['hidden'] = 'Hide Story';
|
||||
$lang->action->dynamicAction->story['linked2execution'] = "Link Story";
|
||||
$lang->action->dynamicAction->story['unlinkedfromexecution'] = "Unlink Story";
|
||||
$lang->action->dynamicAction->story['estimated'] = "Estimate $lang->SRCommon";
|
||||
|
||||
$lang->action->dynamicAction->execution['opened'] = 'Create ' . $lang->executionCommon;
|
||||
$lang->action->dynamicAction->execution['edited'] = 'Edit ' . $lang->executionCommon;
|
||||
|
||||
@@ -146,6 +146,7 @@ $lang->action->desc->diff3 = 'Le nom du fichier %s a changé pour %s .'
|
||||
$lang->action->desc->linked2bug = '$date, affecté à <strong>$extra</strong> par <strong>$actor</strong>';
|
||||
$lang->action->desc->resolved = '$date, resolved by <strong>$actor</strong> ' . "\n";
|
||||
$lang->action->desc->managed = '$date, by <strong>$actor</strong> managed.' . "\n";
|
||||
$lang->action->desc->estimated = '$date, by <strong>$actor</strong> estimated。' . "\n";
|
||||
|
||||
/* 子任务修改父任务的历史操作记录 */
|
||||
$lang->action->desc->createchildren = '$date, <strong>$actor</strong> a créé un sous-tâche <strong>$extra</strong>。' . "\n";
|
||||
@@ -254,6 +255,7 @@ $lang->action->label->deletechildrenstory = "a supprimé la sous-story";
|
||||
$lang->action->label->tracked = 'tracked';
|
||||
$lang->action->label->hangup = 'hangup';
|
||||
$lang->action->label->run = 'run';
|
||||
$lang->action->label->estimated = 'estimated';
|
||||
|
||||
/* 动态信息按照对象分组 */
|
||||
$lang->action->dynamicAction = new stdclass();
|
||||
@@ -314,6 +316,7 @@ $lang->action->dynamicAction->story['undeleted'] = 'Restaurer Story'
|
||||
$lang->action->dynamicAction->story['hidden'] = 'Masquer Story';
|
||||
$lang->action->dynamicAction->story['linked2execution'] = "Link Story";
|
||||
$lang->action->dynamicAction->story['unlinkedfromexecution'] = "Unlink Story";
|
||||
$lang->action->dynamicAction->story['estimated'] = "Estimate $lang->SRCommon";
|
||||
|
||||
$lang->action->dynamicAction->project['opened'] = 'Créer ' . $lang->executionCommon;
|
||||
$lang->action->dynamicAction->project['edited'] = 'Editer ' . $lang->executionCommon;
|
||||
|
||||
@@ -146,6 +146,7 @@ $lang->action->desc->diff3 = 'File Name %s was changed to %s .' . "\n";
|
||||
$lang->action->desc->linked2bug = '$date, liên kết tới <strong>$extra</strong> bởi <strong>$actor</strong>';
|
||||
$lang->action->desc->resolved = '$date, resolved by <strong>$actor</strong> ' . "\n";
|
||||
$lang->action->desc->managed = '$date, by <strong>$actor</strong> managed.' . "\n";
|
||||
$lang->action->desc->estimated = '$date, by <strong>$actor</strong> estimated。' . "\n";
|
||||
|
||||
/* Used to describe the history of operations related to parent-child tasks. */
|
||||
$lang->action->desc->createchildren = '$date, <strong>$actor</strong> created a child task <strong>$extra</strong>。' . "\n";
|
||||
@@ -254,6 +255,7 @@ $lang->action->label->deletechildrenstory = "delete children story";
|
||||
$lang->action->label->tracked = 'tracked';
|
||||
$lang->action->label->hangup = 'hangup';
|
||||
$lang->action->label->run = 'run';
|
||||
$lang->action->label->estimated = 'estimated';
|
||||
|
||||
/* Dynamic information is grouped by object. */
|
||||
$lang->action->dynamicAction = new stdclass;
|
||||
@@ -314,6 +316,7 @@ $lang->action->dynamicAction->story['undeleted'] = 'Khôi phục câ
|
||||
$lang->action->dynamicAction->story['hidden'] = 'Ẩn câu chuyện';
|
||||
$lang->action->dynamicAction->story['linked2execution'] = "Link Story";
|
||||
$lang->action->dynamicAction->story['unlinkedfromexecution'] = "Unlink Story";
|
||||
$lang->action->dynamicAction->story['estimated'] = "Estimate $lang->SRCommon";
|
||||
|
||||
$lang->action->dynamicAction->execution['opened'] = 'Tạo ' . $lang->executionCommon;
|
||||
$lang->action->dynamicAction->execution['edited'] = 'Sửa ' . $lang->executionCommon;
|
||||
|
||||
@@ -150,6 +150,7 @@ $lang->action->desc->diff3 = '将文件名 %s 改为 %s 。' . "\n";
|
||||
$lang->action->desc->linked2bug = '$date 由 <strong>$actor</strong> 关联到版本 <strong>$extra</strong>';
|
||||
$lang->action->desc->resolved = '$date, 由 <strong>$actor</strong> 解决。' . "\n";
|
||||
$lang->action->desc->managed = '$date, 由 <strong>$actor</strong> 维护。' . "\n";
|
||||
$lang->action->desc->estimated = '$date, 由 <strong>$actor</strong> 估算。' . "\n";
|
||||
|
||||
/* 用来描述和父子任务相关的操作历史记录。*/
|
||||
$lang->action->desc->createchildren = '$date, 由 <strong>$actor</strong> 创建子任务 <strong>$extra</strong>。' . "\n";
|
||||
@@ -258,6 +259,7 @@ $lang->action->label->deletechildrenstory = "删除子需求";
|
||||
$lang->action->label->tracked = '跟踪了';
|
||||
$lang->action->label->hangup = '挂起了';
|
||||
$lang->action->label->run = '执行了';
|
||||
$lang->action->label->estimated = '估算了';
|
||||
|
||||
/* 动态信息按照对象分组 */
|
||||
$lang->action->dynamicAction = new stdclass();
|
||||
@@ -318,6 +320,7 @@ $lang->action->dynamicAction->story['undeleted'] = "还原{$lang->SR
|
||||
$lang->action->dynamicAction->story['hidden'] = "隐藏{$lang->SRCommon}";
|
||||
$lang->action->dynamicAction->story['linked2execution'] = "关联$lang->SRCommon";
|
||||
$lang->action->dynamicAction->story['unlinkedfromexecution'] = "移除$lang->SRCommon";
|
||||
$lang->action->dynamicAction->story['estimated'] = "估算$lang->SRCommon";
|
||||
|
||||
$lang->action->dynamicAction->execution['opened'] = '创建' . $lang->executionCommon;
|
||||
$lang->action->dynamicAction->execution['edited'] = '编辑' . $lang->executionCommon;
|
||||
|
||||
@@ -72,6 +72,12 @@ class actionModel extends model
|
||||
$action->execution = $build->execution;
|
||||
}
|
||||
|
||||
if($objectType == 'story' and $actionType == 'estimated')
|
||||
{
|
||||
$action->project = $this->dao->select('project')->from(TABLE_EXECUTION)->where('id')->eq((int)$extra)->fetch('project');
|
||||
$action->execution = (int)$extra;
|
||||
}
|
||||
|
||||
if($objectType == 'case' and (strpos(',linked2testtask,unlinkedfromtesttask,assigned,run,', ',' . $actionType . ',') !== false))
|
||||
{
|
||||
$testtask = $this->dao->select('project,execution')->from(TABLE_TESTTASK)->where('id')->eq((int)$extra)->fetch();
|
||||
|
||||
@@ -2710,6 +2710,8 @@ class execution extends control
|
||||
if($_POST)
|
||||
{
|
||||
$this->story->saveEstimateInfo($storyID);
|
||||
|
||||
$this->loadModel('action')->create('story', $storyID, 'estimated', '', $executionID);
|
||||
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->createLink('execution', 'storyEstimate', "executionID=$executionID&storyID=$storyID")));
|
||||
}
|
||||
$estimateInfo = $this->story->getEstimateInfo($storyID, $round);
|
||||
|
||||
Reference in New Issue
Block a user