From d0e1b3a0932fe92d186b782456b7b729342a1c6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Tue, 23 May 2023 18:17:16 -0300 Subject: [PATCH] Fix missing params when using Edit inline on SQL message box MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes https://github.com/phpmyadmin/phpmyadmin/issues/18440 Signed-off-by: MaurĂ­cio Meneghini Fauth --- js/src/modules/functions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/modules/functions.ts b/js/src/modules/functions.ts index 092d4a30a699..04bea4506287 100644 --- a/js/src/modules/functions.ts +++ b/js/src/modules/functions.ts @@ -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 = $('
', { action: 'index.php?route=/import', method: 'post' }) .append($form.find('input[name=server], input[name=db], input[name=table], input[name=token]').clone()) .append($('', { type: 'hidden', name: 'show_query', value: 1 }))