From df1724629a2633e762a45b11d66f4a64f15e3b3f Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 18 Sep 2002 12:49:54 +0000 Subject: [PATCH] bug 610315 --- ChangeLog | 4 ++++ libraries/display_tbl.lib.php3 | 6 +++--- sql.php3 | 6 ++++++ tbl_change.php3 | 6 +++--- tbl_replace.php3 | 5 +++++ 5 files changed, 21 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7f46acfdf..adc8acf30 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2002-09-18 Loïc Chapeaux + * tbl_change.php3, tbl_replace.php3, sql.php3, + libraries/display_tbl.lib.php3: bug 610315 full text toggle + 2002-09-18 Michal Cihar * lang/*.php3, tbl_properties_export.php3: removed duplicate message with typo in name strCvsData (replaced by strStrucCSV) diff --git a/libraries/display_tbl.lib.php3 b/libraries/display_tbl.lib.php3 index 5c8476d18..e761ba454 100644 --- a/libraries/display_tbl.lib.php3 +++ b/libraries/display_tbl.lib.php3 @@ -474,7 +474,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){ . '&disp_direction=' . $disp_direction . '&repeat_cells=' . $repeat_cells . '&goto=' . $goto - . '&dontlimitchars=' . (empty($dontlimitchars) ? 0 : 1); + . '&dontlimitchars=' . (($dontlimitchars) ? 0 : 1); // ... before the result table if (($is_display['edit_lnk'] == 'nn' && $is_display['del_lnk'] == 'nn') @@ -618,7 +618,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){ . '&session_max_rows=' . $session_max_rows . '&disp_direction=' . $disp_direction . '&repeat_cells=' . $repeat_cells - . '&dontlimitchars=' . (empty($dontlimitchars) ? 0 : 1) + . '&dontlimitchars=' . $dontlimitchars . '&sql_query=' . urlencode($sorted_sql_query); // 2.1.5 Displays the sorting url @@ -924,7 +924,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){ . '&session_max_rows=' . $session_max_rows . '&disp_direction=' . $disp_direction . '&repeat_cells=' . $repeat_cells - . '&dontlimitchars=' . (empty($dontlimitchars) ? 0 : 1); + . '&dontlimitchars=' . $dontlimitchars; // 1.2.1 Modify link(s) if ($is_display['edit_lnk'] == 'ur') { // update row case diff --git a/sql.php3 b/sql.php3 index 23e92d417..17c8a96fb 100755 --- a/sql.php3 +++ b/sql.php3 @@ -510,6 +510,9 @@ else { // libraries/display_tbl.lib.php3 $disp_mode = 'urdr111101'; } + if (!isset($dontlimitchars)) { + $dontlimitchars = 0; + } PMA_displayTable($result, $disp_mode); mysql_free_result($result); @@ -529,6 +532,7 @@ else { . '&session_max_rows=' . $session_max_rows . '&disp_direction=' . $disp_direction . '&repeat_cells=' . $repeat_cells + . '&dontlimitchars=' . $dontlimitchars . '&sql_query=' . urlencode($sql_query); $url_query = '?lang=' . $lang . '&convcharset=' . $convcharset @@ -539,6 +543,7 @@ else { . '&session_max_rows=' . $session_max_rows . '&disp_direction=' . $disp_direction . '&repeat_cells=' . $repeat_cells + . '&dontlimitchars=' . $dontlimitchars . '&sql_query=' . urlencode($sql_query) . '&goto=' . urlencode($lnk_goto); @@ -587,6 +592,7 @@ else { . '&session_max_rows=' . $session_max_rows . '&disp_direction=' . $disp_direction . '&repeat_cells=' . $repeat_cells + . '&dontlimitchars=' . $dontlimitchars . '&sql_query=' . urlencode($sql_query) . '&id_bookmark=1'; ?> diff --git a/tbl_change.php3 b/tbl_change.php3 index b2b10cf82..b6f6eb0b8 100755 --- a/tbl_change.php3 +++ b/tbl_change.php3 @@ -166,6 +166,7 @@ $chg_evt_handler = (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER >= 5) +