From 36099ecac379f514f60e5efa0966cec59b21cb6c Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 30 May 2005 00:05:22 +0000 Subject: [PATCH] bug #1170227, copying a db does not refresh the queryframe --- ChangeLog | 2 ++ db_operations.php | 9 +++++++-- footer.inc.php | 5 +++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 043a44457..a3cfe3998 100755 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,8 @@ $Source$ * footer.inc.php: bug #1209891, db list not refreshed when the left frame is positionned on a db, then a manual DROP DATABASE it done on another db + * db_operations.php, footer.inc.php: bug #1170227, copying a db does not + refresh the queryframe 2005-05-27 Marc Delisle * tbl_properties.inc.php: bug #1205940, current timestamp checkbox diff --git a/db_operations.php b/db_operations.php index b87c0d53c..0a9859eee 100644 --- a/db_operations.php +++ b/db_operations.php @@ -14,8 +14,13 @@ if (isset($db) && require_once('./libraries/tbl_move_copy.php'); - if (isset($db_rename) && $db_rename == 'true') $move = TRUE; - else $move = FALSE; + $force_queryframe_reload = TRUE; + + if (isset($db_rename) && $db_rename == 'true') { + $move = TRUE; + } else { + $move = FALSE; + } if (!isset($newname) || empty($newname)) { $message = $strDatabaseEmpty; diff --git a/footer.inc.php b/footer.inc.php index a013d6ce4..427972656 100644 --- a/footer.inc.php +++ b/footer.inc.php @@ -32,8 +32,9 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) { ?> var forceQueryFrameReload = false; forceQueryFrameReload = true;