+ [bug#59328] fix bug for build history in story view page.

This commit is contained in:
liyang
2025-01-17 16:46:17 +08:00
committed by 田淑杰
parent 0cf07beb65
commit 7c3bbe77db
3 changed files with 7 additions and 5 deletions
+4 -1
View File
@@ -409,8 +409,11 @@ class actionTao extends actionModel
}
elseif(in_array($type, array('build', 'bug', 'release', 'testtask', 'roadmap')))
{
$buildTab = $this->app->tab == 'product' ? 'project' : $this->app->tab;
if($this->app->tab == 'system') $buildTab = 'project';
$object = $this->fetchObjectInfoByID($table, (int)$action->extra, 'name');
if($object && $object->name) $action->extra = common::hasPriv($type, $method) ? html::a(helper::createLink($type, $method, $this->processParamString($action, $type)), $object->name) : $object->name;
if($object && $object->name) $action->extra = common::hasPriv($type, $method) ? html::a(helper::createLink($type, $method, $this->processParamString($action, $type)), $object->name, '', $type == 'build' ? "data-app='{$buildTab}'" : '') : $object->name;
}
elseif($type == 'revision')
{
-1
View File
@@ -676,7 +676,6 @@ $lang->navGroup->auditplan = 'project';
$lang->navGroup->cm = 'project';
$lang->navGroup->nc = 'project';
$lang->navGroup->projectrelease = 'project';
$lang->navGroup->build = 'project';
$lang->navGroup->milestone = 'project';
$lang->navGroup->researchplan = 'project';
$lang->navGroup->workestimation = 'project';
+3 -3
View File
@@ -321,7 +321,7 @@ $lang->story->legendProjectAndTask = $lang->executionCommon . '任务';
$lang->story->legendBugs = '相关Bug';
$lang->story->legendFromBug = '来源Bug';
$lang->story->legendCases = '相关用例';
$lang->story->legendBuilds = '相关版本';
$lang->story->legendBuilds = '相关构建';
$lang->story->legendReleases = '相关发布';
$lang->story->legendLinkStories = "相关{$lang->SRCommon}";
$lang->story->legendChildStories = "拆分{$lang->SRCommon}";
@@ -408,8 +408,8 @@ $lang->story->action->unlinkedfromexecution = array('main' => '$date, 由 <stron
$lang->story->action->linked2kanban = array('main' => '$date, 由 <strong>$actor</strong> 关联到看板 <strong>$extra</strong>。');
$lang->story->action->linked2project = array('main' => '$date, 由 <strong>$actor</strong> ' . "关联到{$lang->projectCommon}" . ' <strong>$extra</strong>。');
$lang->story->action->unlinkedfromproject = array('main' => '$date, 由 <strong>$actor</strong> ' . "从{$lang->projectCommon}" . '<strong>$extra</strong> 移除。');
$lang->story->action->linked2build = array('main' => '$date, 由 <strong>$actor</strong> 关联到版本 <strong>$extra</strong>。');
$lang->story->action->unlinkedfrombuild = array('main' => '$date, 由 <strong>$actor</strong> 从版本 <strong>$extra</strong> 移除。');
$lang->story->action->linked2build = array('main' => '$date, 由 <strong>$actor</strong> 关联到构建 <strong>$extra</strong>。');
$lang->story->action->unlinkedfrombuild = array('main' => '$date, 由 <strong>$actor</strong> 从构建 <strong>$extra</strong> 移除。');
$lang->story->action->linked2release = array('main' => '$date, 由 <strong>$actor</strong> 关联到发布 <strong>$extra</strong>。');
$lang->story->action->unlinkedfromrelease = array('main' => '$date, 由 <strong>$actor</strong> 从发布 <strong>$extra</strong> 移除。');
$lang->story->action->linked2revision = array('main' => '$date, 由 <strong>$actor</strong> 关联到代码提交 <strong>$extra</strong>');