Skip to content

Commit

Permalink
Enh #3300: Add global defaults for priotity and severity of new bugs.
Browse files Browse the repository at this point in the history
M config_defaults_inc.php
- Added $g_default_bug_severity = MINOR;
- Added $g_default_bug_priority = NORMAL;

M bug_report_advanced_page.php
M bug_report_page.php
- Use defaults for severity and priority.


git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2444 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
vboctor committed Mar 17, 2004
1 parent 8141b9a commit 286ca5e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
6 changes: 3 additions & 3 deletions bug_report_advanced_page.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: bug_report_advanced_page.php,v 1.32 2004-03-17 12:42:26 vboctor Exp $
# $Id: bug_report_advanced_page.php,v 1.33 2004-03-17 13:58:59 vboctor Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -42,8 +42,8 @@

$f_category = gpc_get_string( 'category', '' );
$f_reproducibility = gpc_get_int( 'reproducibility', 0 );
$f_severity = gpc_get_int( 'severity', 0 );
$f_priority = gpc_get_int( 'priority', NORMAL );
$f_severity = gpc_get_int( 'severity', config_get( 'default_bug_severity' ) );
$f_priority = gpc_get_int( 'priority', config_get( 'default_bug_priority' ) );
$f_summary = gpc_get_string( 'summary', '' );
$f_description = gpc_get_string( 'description', '' );
$f_steps_to_reproduce = gpc_get_string( 'steps_to_reproduce', '' );
Expand Down
6 changes: 3 additions & 3 deletions bug_report_page.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: bug_report_page.php,v 1.32 2004-03-17 12:42:27 vboctor Exp $
# $Id: bug_report_page.php,v 1.33 2004-03-17 13:58:59 vboctor Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -34,8 +34,8 @@

$f_category = gpc_get_string( 'category', '' );
$f_reproducibility = gpc_get_int( 'reproducibility', 0 );
$f_severity = gpc_get_int( 'severity', 0 );
$f_priority = gpc_get_int( 'priority', NORMAL );
$f_severity = gpc_get_int( 'severity', config_get( 'default_bug_severity' ) );
$f_priority = gpc_get_int( 'priority', config_get( 'default_bug_priority' ) );
$f_summary = gpc_get_string( 'summary', '' );
$f_description = gpc_get_string( 'description', '' );
$f_additional_info = gpc_get_string( 'additional_info', '' );
Expand Down
8 changes: 7 additions & 1 deletion config_defaults_inc.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: config_defaults_inc.php,v 1.150 2004-03-17 12:42:28 vboctor Exp $
# $Id: config_defaults_inc.php,v 1.151 2004-03-17 13:58:59 vboctor Exp $
# --------------------------------------------------------


Expand Down Expand Up @@ -419,6 +419,12 @@
# Default Bugnote View Status (VS_PUBLIC or VS_PRIVATE)
$g_default_bugnote_view_status = VS_PUBLIC;

# Default bug severity when reporting a new bug
$g_default_bug_severity = MINOR;

# Default bug priority when reporting a new bug
$g_default_bug_priority = NORMAL;

# --- viewing defaults ------------
# site defaults for viewing preferences
$g_default_limit_view = 50;
Expand Down
1 change: 1 addition & 0 deletions doc/ChangeLog
Expand Up @@ -3,6 +3,7 @@ Mantis ChangeLog
2004.xx.xx - 0.19.0

* Enh #0000: Generate one email per user. Stage #1 (no send mail optimization).
* Enh #3300: Add global defaults for priotity and severity of new bugs.
* Enh #3302: Add global defaults for view state.
* Enh #3620: Redesigned filter interface.
* Enh #3633: Experimental support for MSSQL, PgSQL and other databases using ADODB.
Expand Down

0 comments on commit 286ca5e

Please sign in to comment.