MantisBT: master-1.2.x a25d69fc

Author Committer Branch Timestamp Parent
vboctor vboctor master-1.2.x 2011-01-07 15:55 master-1.2.x ffd70d46
Affected Issues  0012667: Moving issues between projects doesn't update the category
Changeset

Fix 0012667: Moving issues between projects doesn't update the category

If an issue with category GUI is moved from Project A to Project B (where both have the category defined as non-global), then the issue will show the category name in the view page as "[Project A] GUI" even though the issue now belongs to project B. Also if the user edits the issue, the first category is selected from the list since "[Project A] GUI" is not a valid entry.

The proposed fix is as follows:

  1. If the category is global, then leave as is.
  2. If the category has a match by name in the target project, then switch to that.
  3. If the category doesn't have a match by name in the target project, then move a configured default global category (by default "General").
mod - bug_actiongroup.php Diff File
mod - docbook/adminguide/en/configuration.sgml Diff File
mod - config_defaults_inc.php Diff File
mod - core/bug_api.php Diff File