* Fix bug #42250: don't display files list in bug view when no files.

This commit is contained in:
李硕
2024-01-19 15:23:04 +08:00
parent 82b7696d06
commit 5fd300a3cd
+11 -5
View File
@@ -254,6 +254,16 @@ $buildItems = function($items): array
return $itemList;
};
$fileList = array();
if(!empty($bug->files))
{
$fileList[] = fileList
(
set::files($bug->files),
set::padding(false)
);
}
$actions = $this->loadModel('common')->buildOperateMenu($bug);
detailBody
(
@@ -265,11 +275,7 @@ detailBody
set::content($steps),
set::useHtml(true)
),
fileList
(
set::files($bug->files),
set::padding(false)
)
$fileList
),
history(),
floatToolbar