From dc75d407c06b7edabfdf0844fe07758c7f648074 Mon Sep 17 00:00:00 2001 From: Alexander Kamp Date: Mon, 12 Mar 2018 23:16:57 +0100 Subject: [PATCH] Fixes for issue 14059: (#14075) Missing '=' after fk_checks (value was appended onto field name) sql_query variable not set due to GET-POST method change in tbl_structure.php 'add_key' situation Fix #14059 Signed-off-by: Alexander Kamp --- js/functions.js | 2 +- libraries/controllers/table/TableStructureController.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/js/functions.js b/js/functions.js index 07dd31d54f..0ccfe31db8 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1853,7 +1853,7 @@ function getJSConfirmCommonParam (elem, params) { } else { params = ''; } - params += 'is_js_confirmed=1&ajax_request=true&fk_checks' + ($elem.find('#fk_checks').is(':checked') ? 1 : 0); + params += 'is_js_confirmed=1&ajax_request=true&fk_checks=' + ($elem.find('#fk_checks').is(':checked') ? 1 : 0); return params; } diff --git a/libraries/controllers/table/TableStructureController.php b/libraries/controllers/table/TableStructureController.php index a56d39313c..27f212f1fd 100644 --- a/libraries/controllers/table/TableStructureController.php +++ b/libraries/controllers/table/TableStructureController.php @@ -297,6 +297,7 @@ class TableStructureController extends TableController //after refactoring sql.php $db = $this->db; $table = $this->table; + $sql_query = $GLOBALS['sql_query']; $cfg = $GLOBALS['cfg']; $is_superuser = $GLOBALS['dbi']->isSuperuser(); $pmaThemeImage = $GLOBALS['pmaThemeImage'];