Skip to content

Commit

Permalink
M config_defaults_inc.php
Browse files Browse the repository at this point in the history
- Added "history_default_visible" config.  When ON the bug history is displayed
by default.

M bug_view_advanced_page.php
M bug_view_page.php
- Modified both pages to use the new config.


git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1836 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
vboctor committed Feb 14, 2003
1 parent dca0cc2 commit 2108ff5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bug_view_advanced_page.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: bug_view_advanced_page.php,v 1.33 2003-02-14 02:45:28 vboctor Exp $
# $Id: bug_view_advanced_page.php,v 1.34 2003-02-14 02:58:16 vboctor Exp $
# --------------------------------------------------------
?>
<?php
Expand All @@ -24,7 +24,7 @@
<?php auth_ensure_user_authenticated() ?>
<?php
$f_bug_id = gpc_get_int( 'bug_id' );
$f_history = gpc_get_bool( 'history' );
$f_history = gpc_get_bool( 'history', config_get( 'history_default_visible' ) );

if ( SIMPLE_ONLY == config_get( 'show_view' ) ) {
print_header_redirect ( 'bug_view_page.php?bug_id=' . $f_bug_id );
Expand Down
4 changes: 2 additions & 2 deletions bug_view_page.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: bug_view_page.php,v 1.34 2003-02-14 02:45:28 vboctor Exp $
# $Id: bug_view_page.php,v 1.35 2003-02-14 02:58:17 vboctor Exp $
# --------------------------------------------------------
?>
<?php
Expand All @@ -25,7 +25,7 @@
<?php auth_ensure_user_authenticated() ?>
<?php
$f_bug_id = gpc_get_int( 'bug_id' );
$f_history = gpc_get_bool( 'history' );
$f_history = gpc_get_bool( 'history', config_get( 'history_default_visible' ) );

if ( ADVANCED_ONLY == config_get( 'show_view' ) ) {
print_header_redirect ( 'bug_view_advanced_page.php?bug_id=' . $f_bug_id );
Expand Down
12 changes: 10 additions & 2 deletions 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.71 2003-02-11 08:59:32 jfitzell Exp $
# $Id: config_defaults_inc.php,v 1.72 2003-02-14 02:58:17 vboctor Exp $
# --------------------------------------------------------


Expand Down Expand Up @@ -405,7 +405,15 @@
# change to ASC or DESC
$g_bugnote_order = 'ASC';

# --- bugnote history ordering ----
################################
# Mantis Bug History Settings
################################

# --- bug history visible by default when you view a bug ----
# change to ON or OFF
$g_history_default_visible = ON;

# --- bug history ordering ----
# change to ASC or DESC
$g_history_order = 'ASC';

Expand Down

0 comments on commit 2108ff5

Please sign in to comment.