BUGFIX: Fixed issue where multiple relationship sort order columns would be lost in favor of only the last relationship column in the sort order

This commit is contained in:
UndefinedOffset 2019-07-25 14:20:12 -03:00
parent a54ba97e16
commit 40cd66852e
1 changed files with 1 additions and 1 deletions

View File

@ -403,7 +403,7 @@ class DataQuery
// Find the first free "_SortColumnX" slot
// and assign it to $key
$i = 0;
while (isset($orderby[$key = "\"_SortColumn$i\""])) {
while (isset($newOrderby[$key = "\"_SortColumn$i\""]) || isset($orderby[$key = "\"_SortColumn$i\""])) {
++$i;
}