Fix missing params when using Edit inline on SQL message box

Fixes https://github.com/phpmyadmin/phpmyadmin/issues/18440

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2023-05-23 18:17:16 -03:00
parent 1a611a9641
commit d0e1b3a093
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8

View File

@ -1130,7 +1130,7 @@ function onloadSqlQueryEditEvents () {
var fkCheck = $(this).parent().find('#fk_checks').is(':checked');
var $form = $('a.inline_edit_sql').prev('form');
var $form = $('a.inline_edit_sql').parent().parent().find('form');
var $fakeForm = $('<form>', { action: 'index.php?route=/import', 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 }))