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'];