View Issue Details

IDProjectCategoryView StatusLast Update
0014820mantisbtreportspublic2019-04-14 12:22
ReporterJanHegewaldAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version1.2.8 
Target VersionFixed in Version 
Summary0014820: Summary Page graph 'By status' showing more than the statuses in the current workflow
Description

When choosing a specific project and then showing the Summary Page graph 'By status', all configured statuses (and not only those present in the workflow of the currently selected project) are taken into account for building the graphs.

This is reproducible for every of the around 30 sub-projects I have.

This might also apply to the other graphs 'By priority', 'By severity' and so on.

Additional Information

In my opinion this is caused by the usage of the function MantisEnum::getAssocArrayIndexedByValues in MantisGraph plugin file graph_api.php, which is not taking workflows and so on into account.

TagsNo tags attached.

Relationships

related to 0008300 new advanced summary/per state: display of unavailable states 
has duplicate 0021636 resolveddregad Summary by Severity and Priority graphs do not honor the customizations 

Activities

JanHegewald

JanHegewald

2012-10-12 05:25

reporter   ~0033174

Just had a look into master_1.2.x and master branch, the problem should be present there also.

JanHegewald

JanHegewald

2012-11-23 06:01

reporter   ~0034364

Last edited: 2012-11-23 06:04

View 2 revisions

Here is what I did to resolve the problem (its more a workaround than a real solution):
Add the following lines of code between

$t_assoc_array = MantisEnum::getAssocArrayIndexedByValues( $p_enum_string ); (line 584 in my installation)

and

foreach ( $t_assoc_array as $t_value => $t_label ) {

in the file graph_api.php (function create_bug_enum_summary) of MantisGraph plugin.

if(strcasecmp($p_enum,'status') == 0)
{
$t_workflow = config_get('status_enum_workflow');
$t_assoc_array_complete = $t_assoc_array;
$t_assoc_array = array();

foreach($t_assoc_array_complete as $t_value => $t_label)
{
    if(isset($t_workflow[$t_value]))
    {
        $t_assoc_array[$t_value] = $t_label;
    }
}

}

jojow

jojow

2015-02-18 07:13

reporter   ~0048857

in my case, it has also helped
Mantis Version 1.2.19
MantisBT-Grafiken Version 1.0 use bundle, JpGraph Anti-Aliasing = on

Issue History

Date Modified Username Field Change
2012-10-12 05:24 JanHegewald New Issue
2012-10-12 05:25 JanHegewald Note Added: 0033174
2012-11-23 06:01 JanHegewald Note Added: 0034364
2012-11-23 06:04 JanHegewald Note Edited: 0034364 View Revisions
2012-11-23 11:41 dregad Status new => acknowledged
2014-11-25 11:04 vboctor Category graphs => reports
2015-02-18 07:13 jojow Note Added: 0048857
2015-03-02 08:04 vitsaadmin Issue cloned: 0019438
2019-01-03 08:17 cproensa Relationship added related to 0008300
2019-04-14 12:22 dregad Relationship added has duplicate 0021636