Skip to content

Commit

Permalink
bug #2045512 [export] Numbers in Excel export
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed Aug 13, 2008
1 parent 92caa21 commit 59a33d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ danbarry
displayed, thanks to Maik Wiege - mswiege
- bug #2037381 [export] Export type "replace" does not work
- bug #2037375 [export] DROP PROCEDURE needs IF EXISTS
- bug #2045512 [export] Numbers in Excel export

2.11.8.0 (2008-07-28)
- patch #1987593 [interface] Table list pagination in navi,
Expand Down
8 changes: 7 additions & 1 deletion libraries/export/htmlexcel.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) {
}
} // end if

$fields_meta = PMA_DBI_get_fields_meta($result);

// Format the data
while ($row = PMA_DBI_fetch_row($result)) {
$schema_insert = '<tr>';
Expand All @@ -173,7 +175,11 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) {
} else {
$value = '';
}
$schema_insert .= '<td class=xl2216681 nowrap>' . htmlspecialchars($value) . '</td>';
$schema_insert .= '<td class=xl2216681 nowrap';
if ('1' == $fields_meta[$j]->numeric) {
$schema_insert .= ' x:num ';
}
$schema_insert .= '>' . htmlspecialchars($value) . '</td>';
} // end for
$schema_insert .= '</tr>';
if (!PMA_exportOutputHandler($schema_insert)) {
Expand Down

0 comments on commit 59a33d0

Please sign in to comment.