bug #1170227, copying a db does not refresh the queryframe
This commit is contained in:
@@ -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 <lem9@users.sourceforge.net>
|
||||
* tbl_properties.inc.php: bug #1205940, current timestamp checkbox
|
||||
|
@@ -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;
|
||||
|
@@ -32,8 +32,9 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) {
|
||||
?>
|
||||
var forceQueryFrameReload = false;
|
||||
<?php
|
||||
// this flag comes from sql.php when we saw a DROP DATABASE
|
||||
if ($is_drop_database) {
|
||||
// $is_drop_database comes from sql.php when we saw a DROP DATABASE
|
||||
// $force_queryframe_reload comes from db_operations.php
|
||||
if ((isset($is_drop_database) && $is_drop_database) || (isset($force_queryframe_reload) && $force_queryframe_reload == TRUE)) {
|
||||
?>
|
||||
forceQueryFrameReload = true;
|
||||
<?php
|
||||
|
Reference in New Issue
Block a user