We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a79396b commit 0ea8cc5Copy full SHA for 0ea8cc5
plugins/MantisGraph/core/graph_api.php
@@ -752,7 +752,7 @@ function create_category_summary() {
752
753
$query = "SELECT id, name
754
FROM $t_cat_table
755
- WHERE $specific_where
+ WHERE $specific_where or project_id=" . ALL_PROJECTS . "
756
ORDER BY name";
757
$result = db_query_bound( $query );
758
$category_count = db_num_rows( $result );
@@ -769,7 +769,8 @@ function create_category_summary() {
769
if ( isset($t_metrics[$t_cat_name]) ) {
770
$t_metrics[$t_cat_name] = $t_metrics[$t_cat_name] + db_result( $result2, 0, 0 );
771
} else {
772
- $t_metrics[$t_cat_name] = db_result( $result2, 0, 0 );
+ if (db_result( $result2, 0, 0 ) > 0)
773
+ $t_metrics[$t_cat_name] = db_result( $result2, 0, 0 );
774
}
775
776
0 commit comments