Skip to content

Commit

Permalink
Enh #3302: Add global defaults for view state.
Browse files Browse the repository at this point in the history
M config_defaults_inc.php
- Added $g_default_bug_view_status config option (default VS_PUBLIC)
- Added $g_default_bugnote_view_status config option (default VS_PUBLIC)

M bug_report_advanced_page.php
M bug_report_page.php
- Used $g_default_bug_view_status

M bug_update_advanced_page.php
M bug_update_page.php
M bugnote_add_inc.php
- Used $g_default_bugnote_view_status.


git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2443 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
vboctor committed Mar 17, 2004
1 parent 0bc0c22 commit 8141b9a
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 11 deletions.
4 changes: 2 additions & 2 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.31 2004-01-11 07:16:06 vboctor Exp $
# $Id: bug_report_advanced_page.php,v 1.32 2004-03-17 12:42:26 vboctor Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -48,7 +48,7 @@
$f_description = gpc_get_string( 'description', '' );
$f_steps_to_reproduce = gpc_get_string( 'steps_to_reproduce', '' );
$f_additional_info = gpc_get_string( 'additional_info', '' );
$f_view_state = gpc_get_int( 'view_state', VS_PUBLIC );
$f_view_state = gpc_get_int( 'view_state', config_get( 'default_bug_view_status' ) );

$f_report_stay = gpc_get_bool( 'report_stay' );

Expand Down
4 changes: 2 additions & 2 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.31 2004-02-05 10:57:01 vboctor Exp $
# $Id: bug_report_page.php,v 1.32 2004-03-17 12:42:27 vboctor Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -39,7 +39,7 @@
$f_summary = gpc_get_string( 'summary', '' );
$f_description = gpc_get_string( 'description', '' );
$f_additional_info = gpc_get_string( 'additional_info', '' );
$f_view_state = gpc_get_int( 'view_state', VS_PUBLIC );
$f_view_state = gpc_get_int( 'view_state', config_get( 'default_bug_view_status' ) );

$f_report_stay = gpc_get_bool( 'report_stay' );

Expand Down
4 changes: 2 additions & 2 deletions bug_update_advanced_page.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: bug_update_advanced_page.php,v 1.62 2004-01-13 13:09:47 vboctor Exp $
# $Id: bug_update_advanced_page.php,v 1.63 2004-03-17 12:42:27 vboctor Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -410,7 +410,7 @@
<?php echo lang_get( 'private' ) ?>
</td>
<td colspan="5">
<input type="checkbox" name="private" />
<input type="checkbox" name="private" <?php check_checked( config_get( 'default_bugnote_view_status' ), VS_PRIVATE ); ?> />
</td>
</tr>
<?php } ?>
Expand Down
4 changes: 2 additions & 2 deletions bug_update_page.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: bug_update_page.php,v 1.63 2004-01-13 13:09:47 vboctor Exp $
# $Id: bug_update_page.php,v 1.64 2004-03-17 12:42:27 vboctor Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -319,7 +319,7 @@
<?php echo lang_get( 'private' ) ?>
</td>
<td colspan="5">
<input type="checkbox" name="private" />
<input type="checkbox" name="private" <?php check_checked( config_get( 'default_bugnote_view_status' ), VS_PRIVATE ); ?> />
</td>
</tr>
<?php } ?>
Expand Down
4 changes: 2 additions & 2 deletions bugnote_add_inc.php
Expand Up @@ -6,7 +6,7 @@
# See the files README and LICENSE for details

# --------------------------------------------------------
# $Id: bugnote_add_inc.php,v 1.16 2004-01-11 07:16:06 vboctor Exp $
# $Id: bugnote_add_inc.php,v 1.17 2004-03-17 12:42:28 vboctor Exp $
# --------------------------------------------------------
?>
<?php if ( ( $t_bug->status < config_get( 'bug_resolved_status_threshold' ) ) &&
Expand Down Expand Up @@ -36,7 +36,7 @@
<?php echo lang_get( 'private' ) ?>
</td>
<td>
<input type="checkbox" name="private" />
<input type="checkbox" name="private" <?php check_checked( config_get( 'default_bugnote_view_status' ), VS_PRIVATE ); ?> />
</td>
</tr>
<?php } ?>
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.149 2004-03-16 11:29:56 yarick123 Exp $
# $Id: config_defaults_inc.php,v 1.150 2004-03-17 12:42:28 vboctor Exp $
# --------------------------------------------------------


Expand Down Expand Up @@ -413,6 +413,12 @@
# look in constant_inc.php for values
$g_default_new_account_access_level = REPORTER;

# Default Bug View Status (VS_PUBLIC or VS_PRIVATE)
$g_default_bug_view_status = VS_PUBLIC;

# Default Bugnote View Status (VS_PUBLIC or VS_PRIVATE)
$g_default_bugnote_view_status = VS_PUBLIC;

# --- 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 #3302: Add global defaults for view state.
* Enh #3620: Redesigned filter interface.
* Enh #3633: Experimental support for MSSQL, PgSQL and other databases using ADODB.
* Fix #3622: Tweak attachment SQL in print bug pages.
Expand Down

0 comments on commit 8141b9a

Please sign in to comment.