MantisBT: master 6f76cf63

Author Committer Branch Timestamp Parent
dregad dregad master 2012-07-30 10:49 master 79fc861e
Affected Issues  0014478: The global category "General" can be deleted, but the $g_default_category_for_moves must be protected from suppression
Changeset

Protect $g_default_category_for_moves from deletion

When a category defined as default_category_for_moves is deleted and an
issue is subsequently moved to another project where its current
category does not exist, it gets assigned a non-existing category. This
causes application error 1502 to be triggered whenever MantisBT tries to
display the issue's Category, which can cause a system lock up.

This commit reduces the risk of this situation from happening, by
preventing users from deleting categories which are used as default
(either defined in config_inc.php or in the config table).

Fixes 0014478

mod - core/constant_inc.php Diff File
mod - lang/strings_english.txt Diff File
mod - manage_proj_cat_delete.php Diff File