Skip to content

Commit fca6d03

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 2d5e014). 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 0542805.
1 parent 294aae7 commit fca6d03

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed
 

‎excel_xml_export.php

+1-11
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@
9090

9191
do {
9292
foreach( $result as $t_row ) {
93-
$t_bug = null;
94-
9593
if ( is_blank( $f_export ) || in_array( $t_row->id, $f_bug_arr ) ) {
9694
echo excel_get_start_row();
9795

@@ -103,14 +101,7 @@
103101
echo excel_format_plugin_column_value( $t_column, $t_row );
104102
} else {
105103
$t_function = 'excel_format_' . $t_column;
106-
if ( column_is_extended( $t_column ) ) {
107-
if( $t_bug === null ) {
108-
$t_bug = bug_get( $t_row->id, /* extended = */ true );
109-
}
110-
echo $t_function( $t_bug->$t_column );
111-
} else {
112-
echo $t_function( $t_row );
113-
}
104+
echo $t_function( $t_row );
114105
}
115106
}
116107

@@ -125,7 +116,6 @@
125116
if ( $t_more ) {
126117
$t_page_number++;
127118
$result = filter_get_bug_rows( $t_page_number, $t_per_page, $t_page_count, $t_bug_count );
128-
$t_more !== false;
129119
}
130120
} while ( $t_more );
131121

0 commit comments

Comments
 (0)
Please sign in to comment.