From: <vb...@us...> - 2003-07-01 14:11:03
|
Update of /cvsroot/mantisbt/mantisbt In directory sc8-pr-cvs1:/tmp/cvs-serv17021 Modified Files: print_all_bug_page.php print_all_bug_page_excel.php print_all_bug_page_word.php Log Message: Fix #3110: "Print reports" preview in explorer is not possible unless you select "Display selected only" Fix: All bugs were displayed if "All Projects" is selected and user has access to no projects. Fix: Problem in filtering on reporter = 'any' in the print pages. M print_all_bug_page.php - Default show_flag to 0, if not defined. M print_all_bug_page_excel.php - Fixed a bug where all bugs were printed if the user has "All Projects" selects and have no access to any of the projects. - Fixed a bug in handling the case where reporter is set to any. M print_all_bug_page_word.php - Fixed a bug where all bugs were printed if the user has "All Projects" selects and have no access to any of the projects. - Fixed a bug in handling the case where reporter is set to any. Index: print_all_bug_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/print_all_bug_page.php,v retrieving revision 1.68 retrieving revision 1.69 diff -u -d -r1.68 -r1.69 --- print_all_bug_page.php 9 Mar 2003 03:08:57 -0000 1.68 +++ print_all_bug_page.php 1 Jul 2003 14:10:59 -0000 1.69 @@ -198,7 +198,7 @@ $row_count = db_num_rows( $result ); # for export - $t_show_flag = gpc_get_bool( 'show_flag' ); + $t_show_flag = gpc_get_int( 'show_flag', 0 ); ?> <?php html_page_top1( ) ?> <?php html_head_end( ) ?> Index: print_all_bug_page_excel.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/print_all_bug_page_excel.php,v retrieving revision 1.29 retrieving revision 1.30 diff -u -d -r1.29 -r1.30 --- print_all_bug_page_excel.php 9 Mar 2003 03:08:57 -0000 1.29 +++ print_all_bug_page_excel.php 1 Jul 2003 14:11:00 -0000 1.30 @@ -118,7 +118,7 @@ $project_count = db_num_rows( $result2 ); if ( 0 == $project_count ) { - $t_where_clause = ' WHERE 1=1'; + $t_where_clause = ' WHERE 1=0'; } else { $t_where_clause = ' WHERE ('; for ( $i=0;$i<$project_count;$i++ ) { @@ -137,7 +137,7 @@ } # end project selection - if ( $c_user_id != 'any' ) { + if ( $f_reporter_id != 'any' ) { $t_where_clause .= " AND reporter_id='$c_user_id'"; } Index: print_all_bug_page_word.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/print_all_bug_page_word.php,v retrieving revision 1.39 retrieving revision 1.40 diff -u -d -r1.39 -r1.40 --- print_all_bug_page_word.php 9 Mar 2003 03:08:57 -0000 1.39 +++ print_all_bug_page_word.php 1 Jul 2003 14:11:00 -0000 1.40 @@ -119,7 +119,7 @@ $project_count = db_num_rows( $result2 ); if ( 0 == $project_count ) { - $t_where_clause = ' WHERE 1=1'; + $t_where_clause = ' WHERE 1=0'; } else { $t_where_clause = ' WHERE ('; for ( $i=0;$i<$project_count;$i++ ) { @@ -138,7 +138,7 @@ } # end project selection - if ( $c_user_id != 'any' ) { + if ( $f_reporter_id != 'any' ) { $t_where_clause .= " AND reporter_id='$c_user_id'"; } @@ -420,7 +420,7 @@ <td class="print" colspan="4"> </td> </tr> <?php -$t_related_custom_field_ids = custom_field_get_linked_ids( helper_get_current_project() ); +$t_related_custom_field_ids = custom_field_get_linked_ids( $t_project_id ); foreach( $t_related_custom_field_ids as $t_id ) { $t_def = custom_field_get_definition( $t_id ); ?> |