Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e48ce93

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 8aa3def commit e48ce93

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
@@ -54,9 +54,6 @@
5454
print_header_redirect( 'view_all_set.php?type=0&print=1' );
5555
}
5656

57-
# pre-cache custom column data
58-
columns_plugin_cache_issue_data( $result );
59-
6057
header( 'Content-Type: application/vnd.ms-excel; charset=UTF-8' );
6158
header( 'Pragma: public' );
6259
header( 'Content-Disposition: attachment; filename="' . urlencode( file_clean_name( $t_export_title ) ) . '.xml"' ) ;
@@ -69,6 +66,9 @@
6966
$t_columns = excel_get_columns();
7067

7168
do {
69+
# pre-cache custom column data
70+
columns_plugin_cache_issue_data( $result );
71+
7272
foreach( $result as $t_row ) {
7373
if ( is_blank( $f_export ) || in_array( $t_row->id, $f_bug_arr ) ) {
7474
echo excel_get_start_row();

0 commit comments

Comments
 (0)
Please sign in to comment.