How to hide a status from the status percentage bar
Posted: 04 Apr 2008, 13:26
My goal is to hide the status "closed" from the percentage legend, because most of the issues are closed (more then 80%) and I want to get a clear picture of the open issues.
I've achieved this by modifying the function html_status_percentage_legend() in the file \core\html_api.php.
Unfortunately I didn't find a way to to this by using custom functions, so I had to modify the original file.
Is that simple: on that function just replace the the code below:
by
If you want to hide other status, put "and status not in (st1, st2, st3...)" where stn is the status code you wanto to hide.
It's not the best way, but it works...
Bye
I've achieved this by modifying the function html_status_percentage_legend() in the file \core\html_api.php.
Unfortunately I didn't find a way to to this by using custom functions, so I had to modify the original file.
Is that simple: on that function just replace the the code below:
Code: Select all
$query = "SELECT status, COUNT(*) AS number
FROM $t_mantis_bug_table
WHERE $t_specific_where
GROUP BY status";
Code: Select all
$query = "SELECT status, COUNT(*) AS number
FROM $t_mantis_bug_table
WHERE $t_specific_where and status <> 90
GROUP BY status";
It's not the best way, but it works...
Bye