View Issue Details

IDProjectCategoryView StatusLast Update
0003300mantisbtbugtrackerpublic2004-07-08 07:31
Reporterthraxisp Assigned Tovboctor  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Product Versiongit trunk 
Fixed in Version0.19.0a1 
Summary0003300: Add global defaults for priotity and severity of new bugs
Description

I want to change the default value for the priority or severity of a new bug request.

Additional Information

Rather than change the values in bug_report(_advanced)_page.php, I added defaults for them. Diffs follow:

diff -r mantis/bug_report_advanced_page.php original_src/mantisbt/bug_report_advanced_page.php
45,46c45,46
< $f_severity = gpc_get_int( 'severity', config_get( 'default_new_bug_severity' ) );
< $f_priority = gpc_get_int( 'priority', config_get( 'default_new_bug_priority' ) );

  $f_severity                             = gpc_get_int( 'severity', 0 );
  $f_priority                             = gpc_get_int( 'priority', NORMAL );

diff -r mantis/bug_report_page.php original_src/mantisbt/bug_report_page.php
37,38c37,38
< $f_severity = gpc_get_int( 'severity', config_get( 'default_new_bug_severity' ) );
< $f_priority = gpc_get_int( 'priority', config_get( 'default_new_bug_priority' ) );

  $f_severity                             = gpc_get_int( 'severity', 0 );
  $f_priority                             = gpc_get_int( 'priority', NORMAL );

diff -r mantis/config_defaults_inc.php original_src/mantisbt/config_defaults_inc.php
567,570d566
<
< # bug defaults
< $g_default_new_bug_severity = 0; // defaults to none selected
< $g_default_new_bug_priority = NORMAL;

TagsNo tags attached.

Activities

sgrund

sgrund

2003-08-20 07:57

reporter   ~0004546

BTW: how about a global default for view state (public or private)? In our installation is private the default, so I have to patch every new mantis version.

vboctor

vboctor

2003-08-20 14:58

manager   ~0004548

thraxisp, thanks for the patch.
sgrund, please report a separate feature request for the view state default.

vboctor

vboctor

2004-03-17 09:12

manager   ~0005225

Fixed in CVS and will be available in the next release.

  • Added $g_default_bug_severity = MINOR;
  • Added $g_default_bug_priority = NORMAL;