View Issue Details

IDProjectCategoryView StatusLast Update
0003786mantisbtfeaturepublic2008-08-11 09:41
Reporterdfaught Assigned Tojreese  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Fixed in Version1.2.0a2 
Summary0003786: deleting a category that is in use should issue a warning
Description

If I go to manage_proj_edit_page.php via 'Manage->Manage Projects->project name' as an admin, and then delete one of the categories that at least one bug report is using, the category is deleted without any warning. The bug reports that use that category then have an empty category field.

Most bug reporting tools will not allow deleting a category that is in use. I would at least like to see a warning if the category is in use, and perhaps a list of bugs that are using it.

There is currently a warning message any time I delete a category, but it doesn't say whether any records are using that category.

TagsNo tags attached.

Activities

grangeway

grangeway

2008-07-13 12:59

reporter   ~0018441

John,

Can you evaluate this issue as part of your category changes.

Paul

jreese

jreese

2008-07-14 07:57

reporter   ~0018504

Well, even with the new category system, it still functions almost identical to the previous system. However, now it gives a category_id of '0', which gets interpreted as 'No Category' instead of blank.

As for a warning, we could just change the text string on the ensure_confirmed() message to take a parameter and include the current bug count in the message. Would be a simple solution. Thoughts?

jreese

jreese

2008-07-30 14:21

reporter   ~0018931

Fixed in SVN trunk r5466.

Related Changesets

MantisBT: master 6f93e2a3

2008-07-30 14:21

jreese


Details Diff
Fix 0003786: Show bug count when deleting categories.

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