View Issue Details

IDProjectCategoryView StatusLast Update
0010048mantisbtdocumentationpublic2009-01-13 05:54
Reporterjayone Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformFirefox 3.0.xOSwindowsOS Versionvista
Product Version1.1.6 
Summary0010048: Explanation of variable naming missing/adding new status
Description

When adding a new status a number of strings need to be defined. The names are magical. The formula should be explained. Suggestion:

===
The variable should be named $s_<STATUS>__bug_button where <STATUS> is the same string following the colon after the constant number in the $s_status_enum_string defined above. Spaces should be replaced by underscores.

Personally, I think it'd be a good idea to separate <STATUS> from the rest of the name with double underscores. That'd make it more clear what to change (albeit uglier).

Even nicer would probably be to use a two dimensional array (or better yet a dictionary keyed on status).

Something along the lines of
$s_statusstring[TEST]['buttontext'] = 'The bug is ready for test';

TagsNo tags attached.

Activities

There are no notes attached to this issue.