diff --git a/js/sql.js b/js/sql.js index 28c7287e5..7a70af384 100644 --- a/js/sql.js +++ b/js/sql.js @@ -930,10 +930,9 @@ $(document).ready(function() { } // remove possible previous feedback message $('#result_query').remove(); - if (typeof data.result_query != 'undefined') { + if (typeof data.sql_query != 'undefined') { // display feedback - $('#sqlqueryresults').prepend('
'); - $('#result_query').prepend(data.result_query); + $('#sqlqueryresults').prepend(data.sql_query); } PMA_unInlineEditRow($del_hide, $chg_submit, $this_td, $input_siblings, data, disp_mode); } else { diff --git a/sql.php b/sql.php index e9373f2e3..9587d32f4 100644 --- a/sql.php +++ b/sql.php @@ -63,7 +63,7 @@ if (isset($_REQUEST['get_relational_values']) && $_REQUEST['get_relational_value $column = $_REQUEST['column']; $foreigners = PMA_getForeigners($db, $table, $column); - $display_field = PMA_getDisplayField($foreigners[$column][foreign_db], $foreigners[$column][foreign_table]); + $display_field = PMA_getDisplayField($foreigners[$column]['foreign_db'], $foreigners[$column]['foreign_table']); $foreignData = PMA_getForeignData($foreigners, $column, false, '', '');