Skip to content

Commit

Permalink
removed some extra account pref options
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@95 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Dec 21, 2000
1 parent 29f470a commit eec9ba5
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 27 deletions.
8 changes: 0 additions & 8 deletions account_prefs_update.php3
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@
<?
db_mysql_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name );

### Some sensible defaults
if ( empty( $f_limit_view ) ) {
$f_limit_view = $g_default_limit_view;
}
if ( empty( $f_show_last ) ) {
$f_show_last = $g_default_show_last;
}

if ( $f_action="update" ) {
## update preferences
$query = "UPDATE $g_mantis_user_pref_table
Expand Down
1 change: 0 additions & 1 deletion config_inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@
# defaults for viewing preferences
$g_default_limit_view = 50;
$g_default_show_changed = 6;
$g_default_hide_resolved = ""; # set to on to enable
$g_default_advanced_report = ""; # set to on to enable
$g_default_advanced_view = ""; # set to on to enable
#--------------------
Expand Down
5 changes: 2 additions & 3 deletions db_generate.sql
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,9 @@ CREATE TABLE mantis_user_profile_table (
CREATE TABLE mantis_user_pref_table (
id int(10) unsigned zerofill DEFAULT '0000000000' NOT NULL auto_increment,
user_id int(10) unsigned zerofill DEFAULT '0000000000' NOT NULL,
hide_resolved char(3) NOT NULL,
limit_view int(11) DEFAULT '0' NOT NULL,
show_last char(3) NOT NULL,
advanced_report char(3) NOT NULL,
advanced_view char(3) NOT NULL,
PRIMARY KEY (id)
);

INSERT INTO mantis_user_pref_table VALUES ( '0000000001', '0000000001', '', '');
3 changes: 3 additions & 0 deletions summary_page.php3
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
$t_bug_id = $row["id"];
}
}
if ( $bug_count < 1 ) {
$bug_count = 1;
}
$t_average_time = $t_total_time / $bug_count;

$t_largest_diff = number_format( $t_largest_diff / 86400, 2 );
Expand Down
5 changes: 0 additions & 5 deletions view_bug_all_page.php3
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,11 @@
if ( !isset( $f_show_status ) ) {
$f_show_status = "any";
}
#$f_limit_view

if ( !isset( $f_offset ) ) {
$f_offset = 0;
}

# if ( $f_show_status!="any" ) {
# $f_hide_resolved = "";
# }

### basically we toggle between ASC and DESC if the user clicks the
### same sort order
if ( isset( $f_dir ) ) {
Expand Down
5 changes: 0 additions & 5 deletions view_user_assigned_bug_page.php3
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,11 @@
if ( !isset( $f_show_status ) ) {
$f_show_status = "any";
}
#$f_limit_view

if ( !isset( $f_offset ) ) {
$f_offset = 0;
}

# if ( $f_show_status!="any" ) {
# $f_hide_resolved = "";
# }

### basically we toggle between ASC and DESC if the user clicks the
### same sort order
if ( isset( $f_dir ) ) {
Expand Down
5 changes: 0 additions & 5 deletions view_user_reported_bug_page.php3
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,11 @@
if ( !isset( $f_show_status ) ) {
$f_show_status = "any";
}
#$f_limit_view

if ( !isset( $f_offset ) ) {
$f_offset = 0;
}

# if ( $f_show_status!="any" ) {
# $f_hide_resolved = "";
# }

### basically we toggle between ASC and DESC if the user clicks the
### same sort order
if ( isset( $f_dir ) ) {
Expand Down

0 comments on commit eec9ba5

Please sign in to comment.