[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_1RC1-2045-gecc81cc
Marc Delisle
lem9 at users.sourceforge.net
Fri May 27 22:07:32 CEST 2011
The branch, master has been updated
via ecc81cc23884fd2797bc19a2a1f36beea772ff68 (commit)
from 0b5f4410cd653b2ce132e5f7537e03949cef59f9 (commit)
- Log -----------------------------------------------------------------
commit ecc81cc23884fd2797bc19a2a1f36beea772ff68
Author: Marc Delisle <marc at infomarc.info>
Date: Fri May 27 16:00:40 2011 -0400
bug #3308476 [interface] "Show all" not persistent after a sort
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 1 +
libraries/display_tbl.lib.php | 12 +++++++++---
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 3935ec6..7457914 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,6 +19,7 @@
- [auth] Fixed error handling for signon auth method.
- bug #3276001 [core] Avoid caching of index.php.
- bug #3306958 [interface] Unnecessary Details slider
+- bug #3308476 [interface] "Show all" not persistent after a sort
3.4.1.0 (2011-05-20)
- bug #3301108 [interface] Synchronize and already configured host
diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php
index 036536c..3fc2f77 100644
--- a/libraries/display_tbl.lib.php
+++ b/libraries/display_tbl.lib.php
@@ -445,6 +445,11 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $
global $sql_query, $num_rows;
global $vertical_display, $highlight_columns;
+ // required to generate sort links that will remember whether the
+ // "Show all" button has been clicked
+ $sql_md5 = md5($GLOBALS['sql_query']);
+ $session_max_rows = $_SESSION['tmp_user_values']['query'][$sql_md5]['max_rows'];
+
if ($analyzed_sql == '') {
$analyzed_sql = array();
}
@@ -820,9 +825,10 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $
$sorted_sql_query = $unsorted_sql_query . $sort_order;
}
$_url_params = array(
- 'db' => $db,
- 'table' => $table,
- 'sql_query' => $sorted_sql_query,
+ 'db' => $db,
+ 'table' => $table,
+ 'sql_query' => $sorted_sql_query,
+ 'session_max_rows' => $session_max_rows
);
$order_url = 'sql.php' . PMA_generate_common_url($_url_params);
hooks/post-receive
--
phpMyAdmin
More information about the Git
mailing list