From 10d7e4cdece9053cc93757592f51ddff7af19dca Mon Sep 17 00:00:00 2001 From: zhengrunyu Date: Fri, 25 Feb 2022 13:15:54 +0800 Subject: [PATCH] * Fix bug. --- module/datatable/model.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/datatable/model.php b/module/datatable/model.php index ba863840c7..849031cd6d 100644 --- a/module/datatable/model.php +++ b/module/datatable/model.php @@ -155,6 +155,10 @@ class datatableModel extends model $fixed = $col->fixed == 'no' ? 'true' : 'false'; $width = is_numeric($col->width) ? "{$col->width}px" : $col->width; $title = isset($col->title) ? "title='$col->title'" : ''; + + if($id == 'severity') $col->name = $this->lang->bug->severity; + if($id == 'pri') $col->name = $this->lang->pri; + $title = (isset($col->name) and $col->name) ? "title='$col->name'" : $title; if($id == 'id' and (int)$width < 90) $width = '90px'; $align = $id == 'actions' ? 'text-center' : '';