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 <git@akamp.nl>
This commit is contained in:
Alexander Kamp 2018-03-12 23:16:57 +01:00 committed by Maurício Meneghini Fauth
parent d25f36570e
commit dc75d407c0
2 changed files with 2 additions and 1 deletions

View File

@ -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;
}

View File

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