View Issue Details

IDProjectCategoryView StatusLast Update
0010330mantisbtbugtrackerpublic2009-06-23 15:26
Reporterdhx Assigned Todhx  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
Fixed in Version1.2.0rc1 
Summary0010330: Remove all hardcoded enum levels from within Mantis code
Description

I noticed in a recent commit http://git.mantisbt.org/?p=mantisbt.git;a=commitdiff;h=f6d71ff36607383a7123e6c2f9a5b1e9f64349ab that when a new bug is reported, some fields are set to hardcoded default values (numerical enum levels).

These would be best replaced with new configuration options which are similar in nature to the existing $g_bug_submit_status option.

The changes need to occur in multiple parts of the Mantis code and not just in the example I listed above.

I'm planning to provide a patch for this soon.

TagsNo tags attached.

Relationships

parent of 0003973 closeddhx "Reporter effectiveness" on summary calculated wrongly in case of using custom-severity attributes 
parent of 0004457 closeddhx Add $g_default_bug_reproducibility 
parent of 0003820 closeddhx default value management 
parent of 0010597 closeddhx Remove hardcoded use of ADMINISTRATOR constant 
parent of 0010008 closeddhx Default resolution value should be configurable 
parent of 0008137 closeddhx Custom constants do not work 
has duplicate 0006831 closeddhx Hard-Coded NEW_ constant usage 

Activities

dhx

dhx

2009-04-17 05:56

reporter   ~0021583

I've got a large "10330" branch at git://git.mantisforge.org/mantisbt/dhx.git which removes all hardcoded enum levels from within the Mantis code.

It also changes the names of constants so for example, NEW_ is now STATUS_NEW and HIGH is now PRIORITY_HIGH.

There are a bunch of new configuration options which are required to handle the possibility of people using their own custom enum fields.

Quite a few bugs should also have been fixed in the process.

jreese

jreese

2009-06-12 14:26

reporter   ~0022117

Feature committed to master branch.

Related Changesets

MantisBT: master 16677b02

2009-06-12 14:03

jreese


Details Diff
Merge commit 'dhx/rm-hardcoded-enum' into enums

Fixed a few whitespace issues.

<span class="signoff">Signed-off-by: John Reese <jreese@leetcode.net></span>
Affected Issues
0010330