View Issue Details

IDProjectCategoryView StatusLast Update
0006366mantisbtbugtrackerpublic2006-02-04 05:53
Reportererpisha Assigned Tograngeway  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.0.0rc2 
Fixed in Version1.1.0a1 
Summary0006366: Summary By Project: Open bugs
Description

The count of open bugs per project is wrong.
Related to report ID 0005916 (code & version differs: presumably not included in the release?).

Additional Information

Error in file summary_api.php -> function summary_print_by_project:
if ( $t_closed_val <= $v_status ) {
$p_cache[ $v_project_id ][ 'closed' ] = $v_count;
} else if ( $t_resolved_val <= $v_status ) {
$p_cache[ $v_project_id ][ 'resolved' ] = $v_count;
} else {
$p_cache[ $v_project_id ][ 'open' ] = $v_count;
}
}
}
(it takes the value of the last record)

Suggested fix:

if ( $t_closed_val <= $v_status ) {
$p_cache[ $v_project_id ][ 'closed' ] += $v_count;
} else if ( $t_resolved_val <= $v_status ) {
$p_cache[ $v_project_id ][ 'resolved' ] += $v_count;
} else {
$p_cache[ $v_project_id ][ 'open' ] += $v_count;
}
}
}

TagsNo tags attached.

Activities

There are no notes attached to this issue.