View Issue Details

IDProjectCategoryView StatusLast Update
0005943mantisbtfilterspublic2005-07-23 02:09
ReporterPatPowerMan Assigned Tothraxisp  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.0.0a3 
Fixed in Version1.0.0rc1 
Summary0005943: I can't print some selected Issues (only all)
Description

I would like to select one ore more issues from the "View Issues"-grid and then press the "Print Reports"-URL to select the output format (excel, word, HTML).

But my selection (chechboxes or filtered) has no function, all the issues will appear again on the output-page.

The same "ignorance" here: If I check some checkboxes on the left side from the Issues, they are ignored. I can only output all issues.

The only difference I found:
On the output-page I can check some issues and press the button "display selected only". On the following (filtered) screen I see only the needed issues as expected, but if I press the output-export-icon the wrong issues will be exported!

Additional Information

It could be some error with 'counting'.

I can see the this URL for the export-icon:

a) Single export
.../mantis/print_all_bug_page_word.php?search=&sort=id&dir=DESC&type_page=html&export=1,-1&show_flag=1

The issue has the id 1, but exported is id 2!

b) Multiple export
.../mantis/print_all_bug_page_word.php?search=&sort=id&dir=DESC&type_page=html&export=1,2,3,-1&show_flag=1

The issues id 2, 3 and 4 will be exported!

TagsNo tags attached.

Relationships

has duplicate 0005871 closedthraxisp Can't view report on selected bugs only 

Activities

PatPowerMan

PatPowerMan

2005-07-16 10:56

reporter   ~0010809

I think, I've found a 'quick&dirty'-solution:

In the \print_all_bug_page_word.php search for this 2 lines (lines 112/113)

display the available and selected bugs

if ( isset( $t_bug_arr_sort[$j] ) || ( $f_show_flag==0 )) {

and replace it with:

$filtered_bug_id = $t_bug_arr_sort[ ($result[$j]['id']) ];
if ( isset( $filtered_bug_id ) xor ( $f_show_flag==0 ) ) {


In the \print_all_bug_page_excel.php search for this line (164)

if ( isset( $t_bug_arr_sort[$i] ) || ( $f_show_flag==0 ) ) {

and replace it with:

$filtered_bug_id = $t_bug_arr_sort[ ($result[$i]['id']) ];

display the available and selected bugs

if ( isset( $filtered_bug_id ) xor ( $f_show_flag==0 ) ) {


Could someone check this and tell me, if it really works?
-> I would not write this lines, if it would not work for me .-)

thraxisp

thraxisp

2005-07-21 21:10

reporter   ~0010915

Fixed in CVS.

print_all_bug_page_excel.php -> 1.49
print_all_bug_page_word.php -> 1.60