bug #1901502 Sort data on a field name with space
This commit is contained in:
@@ -726,9 +726,8 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $
|
|||||||
}
|
}
|
||||||
// $name_to_use_in_sort might contain a space due to
|
// $name_to_use_in_sort might contain a space due to
|
||||||
// formatting of function expressions like "COUNT(name )"
|
// formatting of function expressions like "COUNT(name )"
|
||||||
// so we remove spaces; this might cause problems with spaces
|
// so we remove the space in this situation
|
||||||
// inside a column name.
|
$name_to_use_in_sort = str_replace(' )', ')', $name_to_use_in_sort);
|
||||||
$name_to_use_in_sort = str_replace(' ', '', $name_to_use_in_sort);
|
|
||||||
|
|
||||||
if (empty($sort_expression)) {
|
if (empty($sort_expression)) {
|
||||||
$is_in_sort = false;
|
$is_in_sort = false;
|
||||||
|
Reference in New Issue
Block a user