Skip to content

Commit

Permalink
Fix missing params when using Edit inline on SQL message box
Browse files Browse the repository at this point in the history
Fixes #18440

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
  • Loading branch information
MauricioFauth committed May 23, 2023
1 parent 1a611a9 commit d0e1b3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/modules/functions.ts
Expand Up @@ -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 }))
Expand Down

0 comments on commit d0e1b3a

Please sign in to comment.