fixed bug #626366 - "date" columns wrap in browse mode

This commit is contained in:
Loïc Chapeaux
2002-10-25 14:57:21 +00:00
parent c7c8600f07
commit 5ef1d3cb9f
2 changed files with 8 additions and 1 deletions

View File

@@ -11,6 +11,11 @@ $Source$
libraries/kanji-encoding.lib.php3; libraries/sqlparser.lib.php3
libraries/string.lib.php3; user_password.php3: coding standards.
* libraries/auth/cookie.auth.php3: fixes a PHP3 bug.
* libraries/functiuons.js: fixed bug #627567 - Javascript bug in
setPointer() function thanks to Christopher Bloom
<xangelusx at users.sourceforge.net>
* libraries/display_tbl.lib.php3, lines 1123-1124: fixed bug
#626366 - "date" columns wrap in browse mode.
2002-10-25 Marc Delisle <lem9@users.sourceforge.net>
* Documentation.html, clarification about using Relation View

View File

@@ -1120,7 +1120,9 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) {
$row[$pointer] = str_replace("\011", ' &nbsp;&nbsp;&nbsp;', str_replace(' ', ' &nbsp;', $row[$pointer]));
$row[$pointer] = ereg_replace("((\015\012)|(\015)|(\012))", '<br />', $row[$pointer]);
}
$vertical_display['data'][$row_no][$i] = ' <td valign="top" bgcolor="' . $bgcolor . '">';
// loic1: do not wrap if date field type
$nowrap = (eregi('DATE|TIME', $meta->type) ? ' nowrap="nowrap"' : '');
$vertical_display['data'][$row_no][$i] = ' <td valign="top" bgcolor="' . $bgcolor . '"' . $nowrap . '>';
if (isset($map[$meta->name])) {
// Field to display from the foreign table?