View Issue Details

IDProjectCategoryView StatusLast Update
0002434mantisbtbugtrackerpublic2003-12-13 04:52
Reportermarc Assigned Tojfitzell  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Summary0002434: Categories of ALL projects get overwritten when changing a single Category
Description

In "Manage Projects", when you rename a Category in a project, it automatically updates the bugs table, but unfortunately it changes ALL bugs with that category even if they do NOT belong to that project.

I just destroyed my Categories of a big project that way by renaming a category in a test project.

Additional Information

fix:
manage_proj_cat_update.php:
the query
$query = "UPDATE $g_mantis_bug_table
SET category='$f_category'
WHERE category='$f_orig_category'
needs an additional:
AND project_id='$f_project_id'";

TagsNo tags attached.

Activities

jfitzell

jfitzell

2002-08-30 00:54

reporter   ~0003203

Fixed in CVS, revision 1.17 of manage_proj_cat_update.php

This fix will appear in 0.18.0

Related Changesets

MantisBT: master 4634c90b

2002-08-30 03:53

Julian Fitzell


Details Diff
Fix 0002434: Categories of ALL projects get overwritten when changing a single Category

Cleaned up the file a little while I was there

Thanks to marc for finding the solution

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1402 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0002434
mod - manage_proj_cat_update.php Diff File