Relationship Graph
View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0003135 | mantisbt | bugtracker | public | 2003-04-16 10:28 | 2004-02-29 07:17 |
| Reporter | jerwied | Assigned To | vboctor | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 0.18.1 | ||||
| Summary | 0003135: Changing Print-Options does not work | ||||
| Description | Submitting changed options results in an error (text not found) and the refresh-page is wrong | ||||
| Additional Information | Due to a typo in print_all_bug_options_submit, a non-existent text is selected ('operation_succesful' instead of 'operation_successful'). The refresh-page points to a non-existent page (for example http://mantis.calaquendi.net/0) because $f_redirect is wrong? | ||||
| Tags | No tags attached. | ||||
| Attached Files | 3135.diff (1,371 bytes)
Index: print_all_bug_options_inc.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/print_all_bug_options_inc.php,v
retrieving revision 1.19
diff -u -r1.19 print_all_bug_options_inc.php
--- print_all_bug_options_inc.php 11 Jan 2004 07:16:07 -0000 1.19
+++ print_all_bug_options_inc.php 16 Feb 2004 12:44:37 -0000
@@ -129,8 +129,7 @@
<?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">
Index: print_all_bug_options_update.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/print_all_bug_options_update.php,v
retrieving revision 1.14
diff -u -r1.14 print_all_bug_options_update.php
--- print_all_bug_options_update.php 11 Jan 2004 07:16:07 -0000 1.14
+++ print_all_bug_options_update.php 16 Feb 2004 12:44:37 -0000
@@ -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 {
| ||||
|
this seems like an easy fix, don't know why nobody has done it yet... I'll add a note to 0003067 |
|
|
Saving print-options does not work for three reasons: The options are not read from the _POST[]-array, the evaluation is (possibly) wrong and the UPDATE-statement uses the wrong variable for updates. The changes: Instead of '$$t_name', use '$_POST[$t_name]' Context diff: --- print_all_bug_options_update.php Tue May 6 22:46:27 2003
+
edited on: 05-06-03 20:51 |
|
|
the $f_redirect_url is also wrong for that function. It needs to be changed from a gpc_get_int('redirect_url'); to a gpc_get_string('redirect_url'); |
|
|
This is not true for the version from CVS, the redirect url was already fixed, but not the saving. |
|
|
This bug used to apply when register_globals is set to OFF. Patch is now attached and fix committed to CVS. This patch will also fix the rotation of row-1/2 styles for the form itself (dark gray/light gray). |
|
related to
child of
duplicate of