View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0013007 | mantisbt | sub-projects | public | 2011-05-18 03:18 | 2014-09-23 18:05 |
Reporter | michael_w | Assigned To | dhx | ||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.5 | ||||
Target Version | 1.2.6 | Fixed in Version | 1.2.6 | ||
Summary | 0013007: Moving an issue to a sub-project changes the category to the default category | ||||
Description | I recently updated to 1.2.5 and now I got the following problem: I have the project A and the sub-project (of A) B. When moving an issue with category C (which is assigned to the project A) to project B, the category gets changed to DEFAULT (configured default category) and doesn't respect the fact, that project B is a subproject of A and does inherit the category C. | ||||
Steps To Reproduce |
Now I has the default category, instead of category C. | ||||
Additional Information | This issue is related to: http://www.mantisbt.org/bugs/view.php?id=12667 | ||||
Tags | patch | ||||
Attached Files | patch-hierarchy-inherit-bug-13007.patch (400 bytes)
1091,1092c1091,1092 < // If not global, then attempt mapping it to the new project. < if ( $t_category_project_id != ALL_PROJECTS ) { --- > // If not global and not inheriting the category project, then attempt mapping it to the new project. > if ( $t_category_project_id != ALL_PROJECTS && !project_hierarchy_inherit_parent($p_target_project_id, $t_category_project_id)) { | ||||
related to | 0015721 | closed | grangeway | Functionality to consider porting to master-2.0.x |
has duplicate | 0012916 | closed | dregad | Moving issues between projects causes error |
has duplicate | 0012945 | closed | dregad | Cannot move Issue to other Project without this category |
related to | 0013850 | closed | dregad | Moving from project to project causes application error 1502 |
related to | 0016812 | closed | dregad | Moving issue to child->child changes category to default |
I made a patch for it |
|
Reminder sent to: vboctor This is caused by your fix of 0012667 |
|
Patch works for me. |
|
Sounds reasonable from what I'm reading. Thanks for the patch Michael, I've committed it to master-1.2.x and master branches. |
|
Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch |
|
MantisBT: master 21c242c6 2011-07-12 06:03 Committer: dhx Details Diff |
Fix 0013007: Moving an issue to a sub-project - default category used Assume project B is a sub-project of project A. When moving an issue with category C (which is assigned to the project A) to project B, the category gets changed to DEFAULT (configured default category) and doesn't respect the fact, that project B is a subproject of A and does inherit the category C. Steps to reproduce this bug: 1. Create two projects: A and B. B is subproject of A 2. Create category C in project A so that B inherits the category. 3. Create issue I in project A 4. Move I to project B 5. Note that I has the default category instead of category C Signed-off-by: David Hicks <d@hx.id.au> |
Affected Issues 0013007 |
|
mod - core/bug_api.php | Diff File | ||
MantisBT: master-1.2.x d0f850da 2011-07-12 06:03 Committer: dhx Details Diff |
Fix 0013007: Moving an issue to a sub-project - default category used Assume project B is a sub-project of project A. When moving an issue with category C (which is assigned to the project A) to project B, the category gets changed to DEFAULT (configured default category) and doesn't respect the fact, that project B is a subproject of A and does inherit the category C. Steps to reproduce this bug: 1. Create two projects: A and B. B is subproject of A 2. Create category C in project A so that B inherits the category. 3. Create issue I in project A 4. Move I to project B 5. Note that I has the default category instead of category C Signed-off-by: David Hicks <d@hx.id.au> |
Affected Issues 0013007 |
|
mod - core/bug_api.php | Diff File |