Skip to content
Snippets Groups Projects
Commit 484dc593 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix regression in sorting

parent 43044bbb
No related branches found
No related tags found
No related merge requests found
......@@ -237,9 +237,9 @@ abstract class DoliDB implements Database
$return.=preg_replace('/[^0-9a-z_\.]/i','',$val);
// Only ASC and DESC values are valid SQL
if ($sortorder === 'ASC') {
if (strtoupper($sortorder) === 'ASC') {
$return .= ' ASC';
} elseif ($sortorder === 'DESC') {
} elseif (strtoupper($sortorder) === 'DESC') {
$return .= ' DESC';
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment