View Issue Details

IDProjectCategoryView StatusLast Update
0016812mantisbtbugtrackerpublic2014-02-07 18:24
Reporterlukasd Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.15 
Target Version1.2.16Fixed in Version1.2.16 
Summary0016812: Moving issue to child->child changes category to default
Description

When you're moving an issue to a sub-sub-project the category changes to default-category with inheritance enabled in every sub-project.

Steps To Reproduce
  1. Setup Project A as Master.
  2. Project B as child of A and set inheritance
  3. Project C as child of B and set inheritance
  4. Open issue in project A, set category to something different than default, move to project C. -> category changes to default
Additional Information

The current Implementation does not check the complete inheritance hierarchy.

I've changed the following to make it work:

„bug_move“ in „core/bug_api.php“ (currently Line 1251):

<< && !project_hierarchy_inherit_parent( $p_target_project_id, $t_category_project_id )

changed to:

&& !in_array( $t_category_project_id , project_hierarchy_inheritance( $p_target_project_id ) )

TagsNo tags attached.

Relationships

related to 0013007 closeddhx Moving an issue to a sub-project changes the category to the default category 

Activities

dregad

dregad

2014-01-09 12:24

developer   ~0039005

Last edited: 2014-01-09 12:46

Thanks for the bug report. I can reproduce the behavior using provided steps on latest 1.2.x

EDIT: By the way, not sure which version you're currently running, but the code you refer to is at line 1106 not 1251

dregad

dregad

2014-01-09 13:06

developer   ~0039007

Fixed, thank you for your contribution !

Related Changesets

MantisBT: master-1.2.x 7363b2b6

2014-01-09 07:54

dregad


Details Diff
Retain inherited category when moving issue to sub-subproject

Prior to this, the category would be reset to default when moving an
issue more than one level down the project hierarchy, even though all
subprojects are set to inherit categories from their respective parents.

Thanks to lukasd for identifying the issue and providing the fix.

Fixes 0016182
Affected Issues
0016812
mod - core/bug_api.php Diff File

MantisBT: master 7694a383

2014-01-09 07:54

dregad


Details Diff
Retain inherited category when moving issue to sub-subproject

Prior to this, the category would be reset to default when moving an
issue more than one level down the project hierarchy, even though all
subprojects are set to inherit categories from their respective parents.

Thanks to lukasd for identifying the issue and providing the fix.

Fixes 0016182
Affected Issues
0016812
mod - core/bug_api.php Diff File