View Issue Details

IDProjectCategoryView StatusLast Update
0014528mantisbtbugtrackerpublic2012-08-26 16:15
Reporterjholladay Assigned Toatrol  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
Summary0014528: Moving an issue from project with specific categories to project with global categories changes category to default
Description

As an aside, my default category happened to be 1, which I deleted long ago (not realizing that this default category was hardcoded somewhere). My system happened to crash because of that, which sucked. I had to go into the code to figure out what was happening. But that would be a different issue. Not sure if that has been reported. Heck, I'm not sure if this has been reported.

Steps To Reproduce

project A has "Category X". Project B inherits global categories and there is a global category "Category X". Default move category is "Category Y". Move issue from Project A to Project B causes category to change to "Category Y" instead of remaining "Category X" and mapping to the global category.

If there is no "Category Y" then My View crashes, making it very difficult to figure out what happened, and causing a complete system outage with a "Category Not Found" error for everyone who happens to have this issue in their view.

Additional Information

I added this code to bug_move to allow it to map to a global category if the parent project didn't have the category. Not sure if this is best, but it got me around my problem.

        //JAH 7/30/2012 - Added to enable moving to a project that has global categories.

        if ( $t_target_project_category_id === false 
            && project_hierarchy_inherit_parent( $p_target_project_id, ALL_PROJECTS ) 
        ) {
            $t_target_project_category_id = category_get_id_by_name( $t_category_name, ALL_PROJECTS, /* triggerErrors */ false );
        }
TagsNo tags attached.

Relationships

duplicate of 0014478 closeddregad The global category "General" can be deleted, but the $g_default_category_for_moves must be protected from suppression 

Activities

atrol

atrol

2012-07-30 14:37

developer   ~0032404

Are you aware that there is the option $g_default_category_for_moves ?
Is 0014478 the problem you got?

atrol

atrol

2012-08-16 10:30

developer   ~0032586

jholladay, you did not provide any feedback. I am quite sure that your first issue is a duplicate of 0014478 which will be fixed in a future version.