mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
a54ba97e16
commit
40cd66852e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user