diff --git a/js/sql.js b/js/sql.js index 995c4ac3c..0c39fbee8 100644 --- a/js/sql.js +++ b/js/sql.js @@ -625,7 +625,8 @@ $(document).ready(function() { 'rel_fields_list' : rel_fields_list, 'do_transformations' : transformation_fields, 'transform_fields_list' : transform_fields_list, - 'goto' : 'sql.php' + 'goto' : 'sql.php', + 'submit_type' : 'save' }; $.post('tbl_replace.php', post_params, function(data) { diff --git a/sql.php b/sql.php index f4b3ed485..351fb20d8 100644 --- a/sql.php +++ b/sql.php @@ -677,7 +677,7 @@ if (0 == $num_rows || $is_affected) { if(isset($GLOBALS['display_query'])) { $extra_data['sql_query'] = PMA_showMessage(NULL, $GLOBALS['display_query']); } - if ($GLOBALS['reload'] == 1) { + if (isset($GLOBALS['reload']) && $GLOBALS['reload'] == 1) { $extra_data['reload'] = 1; $extra_data['db'] = $GLOBALS['db']; }