From daa561c09844f84a06c86e06bbbc85c7eab54028 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Fri, 22 Sep 2006 21:30:51 +0000 Subject: [PATCH] bug #1560152, after renaming a table the navigation does not work --- ChangeLog | 4 ++++ libraries/tbl_properties_links.inc.php | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f32368664..1ef4e6717 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - ChangeLog $Id$ $Source$ +2006-09-22 Marc Delisle + * libraries/tbl_properties_links.inc.php: bug #1560152, + after renaming a table the navigation does not work + 2006-09-22 Sebastian Mendel * libraries/ob.lib.php: refactored * left.php: cleanup diff --git a/libraries/tbl_properties_links.inc.php b/libraries/tbl_properties_links.inc.php index dbfe7943c..6c7de1999 100644 --- a/libraries/tbl_properties_links.inc.php +++ b/libraries/tbl_properties_links.inc.php @@ -17,7 +17,8 @@ require_once('./libraries/bookmark.lib.php'); /** * Set parameters for links */ -if (empty($url_query)) { +if (empty($url_query) +|| (isset($_POST['table']) && isset($_POST['new_name']) && $_POST['table'] != $_POST['new_name'])) { $url_query = PMA_generate_common_url($db, $table); } $url_params['db'] = $db;