Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
0003560mantisbtotherpublic2004-02-29 07:17
Reportermsrdanov Assigned Tovboctor  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
Summary0003560: Updating print options resets all fields to "off" with no way to set fields again
Description

I tried to update the printing options for bug reports. When I selected the fields I wanted to be printed (or rather unselected the ones I didn't want), I got no printouts for excel types at all. When I went back to the update prefs page, I noticed that all the checkboxes were unchecked and no matter what I did, they remained unchecked on subsequent visits.

I checked the mysql table "mantis_user_print_pref_table", and the entry for my user (admin level) was "000000000000000000000000000". I deleted the entry and tried again. What I noticed is that when I first enter the preferences page, and entry gets created with all fields set, ("111111111111111111111111111"). Once I hit update, regardless of what I checked in the boxes, the entry gets reset back to all zeros again.

TagsNo tags attached.

Relationships

duplicate of 0003135 closedvboctor Changing Print-Options does not work 

Activities

Luebbe

Luebbe

2004-02-16 06:24

reporter   ~0005043

This is a duplicate of (at least) 0003067, 0003135, 0003146, 0003215

The problem was fixed for me by changing the following lines in print_all_bug_options_update.php. I don't know if it's fixed in CVS though

--SNIP--

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) ) ) {

    if ( !isset( $_POST[$t_name] ) ) {
        $t_prefs_arr[$i] = 0;
    }
    else {
        $t_prefs_arr[$i] = 1;
    }
}

--SNIP--