View Issue Details

IDProjectCategoryView StatusLast Update
0006515mantisbtwebpagepublic2008-08-12 09:36
Reporterdma Assigned Tograngeway  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionunable to reproduce 
Product Version1.0.0rc4 
Summary0006515: Incorrect bug counts on summary page
Description

On the summary page, in the section "By Project", the values are calculated incorrectly, if there is more than one status that is considered "open", "resolved" or "closed". (This is usually the case, in particular for "open".)

Note that the section "By Project" is only displayed, if there is more than one project.

Additional Information

Suggested fix:

File: summary_api.php
Function: summary_print_by_project
Lines: 506-520

$p_cache = Array();
$p_cache[ $v_project_id ][ 'closed' ] = 0;
$p_cache[ $v_project_id ][ 'resolved' ] = 0;
$p_cache[ $v_project_id ][ 'open' ] = 0;

$t_resolved_val = RESOLVED;
$t_closed_val = CLOSED;

while ( $row = db_fetch_array( $result ) ) {
extract( $row, EXTR_PREFIX_ALL, 'v' );
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

emartinho

emartinho

2007-03-30 03:24

reporter   ~0014285

Last edited: 2007-03-30 03:25

Is anyone actually looking into this issue? This is a problem for us as well and it appears that it is also associated with custom statuses which alter the code related to the RESOLVED state. In our case RESOLVED is now code 75 instead of 80 and this is affecting the By Project Summary.

Thought I should add that we're on 1.1.0a2.

grangeway

grangeway

2007-07-23 18:55

reporter   ~0015194

The reported bug in 1.0.04rc4 was fixed in January 2006 - http://mantisbt.cvs.sourceforge.net/mantisbt/mantisbt/core/summary_api.php?r1=1.42&r2=1.42.6.1

Emartinho - Can you describe a bit more what your seeing and your custom statuses. From a brief review of the code, it would seem at first glance that it 'looks ok' at the moment.

Paul

grangeway

grangeway

2008-05-02 16:18

reporter   ~0017732

Thank you for taking the time to report a problem with mantis.

Since this problem report was originally made, a number of releases have occurred.
It appears that this issue has either been fixed, or may not be a relevant report for the current release.

Unfortunately you are not using the latest version and the problem might already be fixed. Please download the latest release from http://www.mantisbt.org/download.php

If you are able to reproduce this bug in the current release, or have some more information on how this feature could be improved in the current release. Please either change the mantis version on this bug report
to the version you tested and change the status back to "Open", or open a new issue report wit more information.

Again, thank you for your bug report and your continued support.
Paul