Skip to content

Commit

Permalink
Fixed #3135: Changing Print-Options does not work.
Browse files Browse the repository at this point in the history
M print_all_bug_options_inc.php
- Fixed the row styles to have alternating light-gray / dark gray color in the form that sets the preferences.

M print_all_bug_options_update.php
- Fixed the actual problem of extracting the check box statuses from $_POST rather than the global variables.


git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2365 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
vboctor committed Feb 16, 2004
1 parent 3babec1 commit fcfd4e3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions doc/ChangeLog
Expand Up @@ -8,6 +8,7 @@ Mantis ChangeLog
* Enh #3564: In annonymous mode, login should remember the current page.
* Fix #3077: Inconsistency: "Assigned To" versus "Handler".
* Fix #3118: My Account: after update of password, wrong information is given.
* Fix #3135: Changing Print-Options does not work.
* Fix #3440: "Allowed File Types" is case sensitive (also applies to disallowed file types).
* Fix #3522: /news_update.php looks different from /main_page.php.
* Fix #3537: Rewriting custom values with 0 when updating a bug.
Expand Down
5 changes: 2 additions & 3 deletions print_all_bug_options_inc.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: print_all_bug_options_inc.php,v 1.19 2004-01-11 07:16:07 vboctor Exp $
# $Id: print_all_bug_options_inc.php,v 1.20 2004-02-16 12:49:25 vboctor Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -129,8 +129,7 @@ function edit_printing_prefs( $p_user_id = null, $p_error_if_protected = true, $
<?php # display the checkboxes
for ($i=0 ; $i <$field_name_count ; $i++) {

$row_color = $i%2+1;
PRINT "<tr class=\"row-($row_color)\">";
printf ( '<tr %s>', helper_alternate_class( $i ) );
?>

<td class="category">
Expand Down
6 changes: 4 additions & 2 deletions print_all_bug_options_update.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: print_all_bug_options_update.php,v 1.14 2004-01-11 07:16:07 vboctor Exp $
# $Id: print_all_bug_options_update.php,v 1.15 2004-02-16 12:49:25 vboctor Exp $
# --------------------------------------------------------
?>
<?php
Expand All @@ -30,7 +30,9 @@
# check the checkboxes
for ($i=0 ; $i <$field_name_count ; $i++) {
$t_name='print_'.strtolower(str_replace(' ','_',$t_field_name_arr[$i]));
if ( !isset( $$t_name ) || ( 1 == ($$t_name) ) ) {
$t_flag = gpc_get( $t_name, null );

if ( $t_flag === null ) {
$t_prefs_arr[$i] = 0;
}
else {
Expand Down

0 comments on commit fcfd4e3

Please sign in to comment.