Skip to content

Commit

Permalink
Fix #8645: Roadmap should count issues with multiple parents as only …
Browse files Browse the repository at this point in the history
…one issue in progress total.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@4811 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
amyreese committed Dec 5, 2007
1 parent 023c9a9 commit 25e8693
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions roadmap_page.php
Expand Up @@ -96,6 +96,7 @@ function print_project_header( $p_project_name ) {

$t_issues_planned = 0;
$t_issues_resolved = 0;
$t_issues_counted = array();

$t_version_header_printed = false;

Expand Down Expand Up @@ -136,11 +137,15 @@ function print_project_header( $p_project_name ) {
if ( !helper_call_custom_function( 'roadmap_include_issue', array( $t_issue_id ) ) ) {
continue;
}

if ( !isset( $t_issues_counted[$t_issue_id] ) ) {
$t_issues_planned++;

$t_issues_planned++;

if ( bug_is_resolved( $t_issue_id ) ) {
$t_issues_resolved++;
if ( bug_is_resolved( $t_issue_id ) ) {
$t_issues_resolved++;
}

$t_issues_counted[$t_issue_id] = true;
}

$t_issue_ids[] = $t_issue_id;
Expand Down

0 comments on commit 25e8693

Please sign in to comment.