*Fix bug 18183,18184.

This commit is contained in:
songchenxuan
2022-01-05 15:06:56 +08:00
parent 96891e8c70
commit ecc3ae4608
+33 -27
View File
@@ -2732,34 +2732,40 @@ class bugModel extends model
{
$class = "c-$id";
$title = '';
if($id == 'id') $class .= ' cell-id';
if($id == 'status')
switch($id)
{
$class .= ' bug-' . $bug->status;
$title = "title='" . $this->processStatus('bug', $bug) . "'";
}
if($id == 'confirmed')
{
$class .= ' text-center';
}
if($id == 'title')
{
$class .= ' text-left';
$title = "title='{$bug->title}'";
}
if($id == 'type')
{
$title = "title='" . zget($this->lang->bug->typeList, $bug->type) . "'";
}
if($id == 'assignedTo')
{
$class .= ' has-btn text-left';
if($bug->assignedTo == $account) $class .= ' red';
}
if($id == 'resolvedBy')
{
$class .= ' c-user';
$title = "title='" . zget($users, $bug->resolvedBy) . "'";
case 'id':
$class .= ' cell-id';
break;
case 'status':
$class .= ' bug-' . $bug->status;
$title = "title='" . $this->processStatus('bug', $bug) . "'";
break;
case 'confirmed':
$class .= ' text-center';
break;
case 'title':
$class .= ' text-left';
$title = "title='{$bug->title}'";
break;
case 'type':
$title = "title='" . zget($this->lang->bug->typeList, $bug->type) . "'";
break;
case 'assignedTo':
$class .= ' has-btn text-left';
if($bug->assignedTo == $account) $class .= ' red';
break;
case 'resolvedBy':
$class .= ' c-user';
$title = "title='" . zget($users, $bug->resolvedBy) . "'";
break;
case 'project':
$title = "title='" . zget($projectPairs, $bug->project, '') . "'";
break;
case 'resolvedBuild':
$class .= ' text-ellipsis';
$title = "title='" . $bug->resolvedBuild . "'";
break;
}
if($id == 'deadline' && isset($bug->delay) && $bug->status == 'active') $class .= ' delayed';
if(strpos(',type,execution,story,plan,task,openedBuild,', ",{$id},") !== false) $class .= ' text-ellipsis';