Skip to content

Commit 30e3d69

Browse files
committedMay 29, 2012
Fix Excel export of plug-in columns limited to first 100 rows
Due to an incorrect location of columns_plugin_cache_issue_data() function call outside of the main loop, only the first 100 rows of plug-in columns were loaded when exporting issues to Excel. Thanks to vincent_sels for spotting the issue and identifying the root cause. Fixes #14185
1 parent 196596f commit 30e3d69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎excel_xml_export.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@
7474
print_header_redirect( 'view_all_set.php?type=0&print=1' );
7575
}
7676

77-
# pre-cache custom column data
78-
columns_plugin_cache_issue_data( $result );
79-
8077
header( 'Content-Type: application/vnd.ms-excel; charset=UTF-8' );
8178
header( 'Pragma: public' );
8279
header( 'Content-Disposition: attachment; filename="' . urlencode( file_clean_name( $t_export_title ) ) . '.xml"' ) ;
@@ -89,6 +86,9 @@
8986
$t_columns = excel_get_columns();
9087

9188
do {
89+
# pre-cache custom column data
90+
columns_plugin_cache_issue_data( $result );
91+
9292
foreach( $result as $t_row ) {
9393
if ( is_blank( $f_export ) || in_array( $t_row->id, $f_bug_arr ) ) {
9494
echo excel_get_start_row();

0 commit comments

Comments
 (0)
Please sign in to comment.