mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Ensure that subtracting a sorted DataList works.
This commit is contained in:
parent
296ee1fa0f
commit
ed0341e82f
@ -656,6 +656,7 @@ function max($field) {
|
||||
$fieldExpression = $this->expressionForField($field, $subSelect);
|
||||
$subSelect->setSelect(array());
|
||||
$subSelect->selectField($fieldExpression, $field);
|
||||
$subSelect->setOrderBy(null);
|
||||
$this->where($this->expressionForField($field, $this).' NOT IN ('.$subSelect->sql().')');
|
||||
|
||||
return $this;
|
||||
|
Loading…
Reference in New Issue
Block a user