* [task#138368] fix bug.

This commit is contained in:
liyang
2025-02-27 08:57:51 +08:00
committed by 曹延义
parent 2f15ea36e8
commit c63b223684
+4 -2
View File
@@ -409,10 +409,12 @@ class actionTao extends actionModel
}
elseif(in_array($type, array('build', 'bug', 'release', 'testtask', 'roadmap')))
{
$buildTab = $this->app->tab == 'product' ? 'project' : $this->app->tab;
$field = $type == 'build' ? 'name, execution' : 'name';
$object = $this->fetchObjectInfoByID($table, (int)$action->extra, $field);
$buildTab = $type == 'build' && ($this->app->tab == 'product' || empty($action->execution)) ? '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, '', $type == 'build' ? "data-app='{$buildTab}'" : '') : $object->name;
}
elseif($type == 'revision')