Skip to content

Commit

Permalink
"Top Reporters" to "Top Reporters by Fixed Issues"
Browse files Browse the repository at this point in the history
  • Loading branch information
vboctor committed Jul 9, 2016
1 parent b84f5c2 commit 085a9a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions plugins/MantisGraph/core/graph_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,9 @@ function create_reporter_summary() {
$t_user_id = auth_get_current_user_id();
$t_specific_where = helper_project_specific_where( $t_project_id, $t_user_id );

$t_query = 'SELECT reporter_id, count(*) as count FROM {bug} WHERE ' . $t_specific_where . ' GROUP BY reporter_id ORDER BY count DESC';
$t_result = db_query( $t_query, array(), 20 );
$t_query = 'SELECT reporter_id, count(*) as count FROM {bug} WHERE ' . $t_specific_where . ' AND resolution = ' .
db_param() . ' GROUP BY reporter_id ORDER BY count DESC';
$t_result = db_query( $t_query, array( FIXED ), 20 );

$t_reporter_arr = array();
$t_reporters = array();
Expand Down
2 changes: 1 addition & 1 deletion plugins/MantisGraph/pages/summary_graph_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<div class="widget-header widget-header-small">
<h4 class="widget-title lighter">
<i class="ace-icon fa fa-bar-chart"></i>
<?php echo 'Top Reporters' ?>
<?php echo 'Top Reporters by Fixed Issues' ?>
</h4>
</div>
<?php
Expand Down

0 comments on commit 085a9a6

Please sign in to comment.