diff --git a/ChangeLog b/ChangeLog index e8a9f7ceb..9e111552d 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,13 @@ phpMyAdmin - Changelog $Id$ $Source$ +2003-04-02 Garvin Hicking + * tbl_move_copy.php3, tbl_properties_operations.php3: Made 'move to + newly created table' depend on a selected checkbox. State of that + checkbox is saved in a cookie. + * lang/*: Added $strSwitchToTable for the above. + * lang/german-*: Translations + 2003-04-02 Michal Cihar * tbl_move_copy.php3: Fixed copying/moving to work after some changes in generated SQL dump, move to newly created table also after copying. diff --git a/tbl_move_copy.php3 b/tbl_move_copy.php3 index f5c5607e4..661bc76db 100644 --- a/tbl_move_copy.php3 +++ b/tbl_move_copy.php3 @@ -381,9 +381,21 @@ if (isset($new_name) && trim($new_name) != '') { $message = sprintf($message, $source, $target); $reload = 1; $js_to_run = 'functions.js'; - /* Work on new table */ - $db = $target_db; - $table = $new_name; + /* Check: Work on new table or on old table? */ + if (isset($submit_move)) { + $db = $target_db; + $table = $new_name; + } else { + $pma_uri_parts = parse_url($cfg['PmaAbsoluteUri']); + if (isset($switch_to_new) && $switch_to_new == 'true') { + setcookie('pma_switch_to_new', 'true', 0, substr($pma_uri_parts['path'], 0, strrpos($pma_uri_parts['path'], '/')), '', ($pma_uri_parts['scheme'] == 'https')); + $db = $target_db; + $table = $new_name; + } else { + setcookie('pma_switch_to_new', '', 0, substr($pma_uri_parts['path'], 0, strrpos($pma_uri_parts['path'], '/')), '', ($pma_uri_parts['scheme'] == 'https')); + // garvin:Keep original table for work. + } + } include('./header.inc.php3'); } // end is target table name diff --git a/tbl_properties_operations.php3 b/tbl_properties_operations.php3 index 788275362..c743e5718 100755 --- a/tbl_properties_operations.php3 +++ b/tbl_properties_operations.php3 @@ -175,7 +175,9 @@ for ($i = 0; $i < $num_dbs; $i++) {   
-    +   
+ /> +