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 a3eec4b

Browse files
committedMar 9, 2012
Code cleanup in excel_xml_export.php
Removed the specific logic to handle the extended text fields, which is no longer required as the BugData API will automatically retrieve them if needed. This is a leftover from the conversion from old, array-style access to bug data (see 18ad379). Furthermore, the call to bug_get() was redundant, since the result set from filter_get_bug_rows() already contains BugData objects. Fixes #14017 Also removes a useless line of code accidentally left in there by commit b5450f3.
1 parent 46ff26e commit a3eec4b

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed
 

‎excel_xml_export.php

+1-12
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@
7070

7171
do {
7272
foreach( $result as $t_row ) {
73-
$t_bug = null;
74-
7573
if ( is_blank( $f_export ) || in_array( $t_row->id, $f_bug_arr ) ) {
7674
echo excel_get_start_row();
7775

@@ -83,15 +81,7 @@
8381
echo excel_format_plugin_column_value( $t_column, $t_row );
8482
} else {
8583
$t_function = 'excel_format_' . $t_column;
86-
if ( column_is_extended( $t_column ) ) {
87-
if( $t_bug === null ) {
88-
$t_bug = bug_get( $t_row->id, /* extended = */ true );
89-
}
90-
echo $t_function( $t_bug->$t_column );
91-
} else {
92-
$t_function = 'excel_format_' . $t_column;
93-
echo $t_function( $t_row );
94-
}
84+
echo $t_function( $t_row );
9585
}
9686
}
9787

@@ -106,7 +96,6 @@
10696
if ( $t_more ) {
10797
$t_page_number++;
10898
$result = filter_get_bug_rows( $t_page_number, $t_per_page, $t_page_count, $t_bug_count );
109-
$t_more !== false;
11099
}
111100
} while ( $t_more );
112101

0 commit comments

Comments
 (0)
Please sign in to comment.