Fix bug#4059: Running delete query asks for confirmation but says it was already executed

This commit is contained in:
Atul Pratap Singh 2013-10-28 01:53:50 +05:30
parent f0b2f264e1
commit c2f48525dc
3 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,7 @@ phpMyAdmin - ChangeLog
- bug #4129 Unneeded navi panel refresh
- bug #4120 SSL redirects to port 80
- bug #4144 DROP DATABASE displays wrong database name
- bug #4059 Running delete query asks for confirmation but says it was already executed
4.0.8.0 (2013-10-06)
- bug #3988 Rename view is not working

View File

@ -1384,7 +1384,11 @@ AJAX.registerOnload('functions.js', function() {
var $fake_form = $('<form>', {action: 'import.php', method: 'post'})
.append($form.find("input[name=server], input[name=db], input[name=table], input[name=token]").clone())
.append($('<input/>', {type: 'hidden', name: 'show_query', value: 1}))
.append($('<input/>', {type: 'hidden', name: 'is_js_confirmed', value: 0}))
.append($('<input/>', {type: 'hidden', name: 'sql_query', value: sql_query}));
if (! checkSqlQuery($fake_form[0])) {
return false;
}
$fake_form.appendTo($('body')).submit();
});

View File

@ -518,6 +518,7 @@ if ($do_confirm) {
$output .='</fieldset>';
$output .= '';
$message = '';
PMA_Response::getInstance()->addHTML($output);
exit;