From b64abd63f80ed9a8122d5ca3f2176e780d9860f2 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Thu, 14 Apr 2011 07:06:45 +0530 Subject: [PATCH 1/2] Bug #3286111 Inline edit save hides mysql message --- js/sql.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 { From e13f033d95047b65bdc7d0d6bfa64bd21cf9fbd1 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Thu, 14 Apr 2011 07:17:53 +0530 Subject: [PATCH 2/2] These are strings. --- sql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, '', '');