diff --git a/ChangeLog b/ChangeLog index 1cf8daec25..57c4ca3c51 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ phpMyAdmin - ChangeLog - issue Incorrect scalar type declaration (reported under PHP 7) - issue #11389 ReCaptcha produces deprecated messages under PHP 7 - issue #11387 phpseclib < 2.0 produces deprecated messages on PHP 7 +- issue #11404 "Switch to copied table" doesn't work 4.4.13.1 (2015-08-08) - issue #11368 SQL error when importing phpMyAdmin dump file diff --git a/js/tbl_operations.js b/js/tbl_operations.js index 56e60162b9..b851cecb43 100644 --- a/js/tbl_operations.js +++ b/js/tbl_operations.js @@ -26,7 +26,10 @@ AJAX.registerOnload('tbl_operations.js', function () { $.post($form.attr('action'), $form.serialize() + "&submit_copy=Go", function (data) { if (typeof data !== 'undefined' && data.success === true) { if ($form.find("input[name='switch_to_new']").prop('checked')) { - PMA_commonParams.set('db', data.db); + PMA_commonParams.set( + 'db', + $form.find("select[name='target_db']").val() + ); PMA_commonParams.set( 'table', $form.find("input[name='new_name']").val()