Skip to content
Browse files

BUGFIX: Ensure that subtracting a sorted DataList works.

  • Loading branch information...
1 parent 296ee1f commit ed0341e82fb3cd678341f4d8c41db0441cf0f7fa @sminnee sminnee committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 model/DataQuery.php
1 model/DataQuery.php
@@ -656,6 +656,7 @@ public function subtract(DataQuery $subtractQuery, $field='ID') {
$fieldExpression = $this->expressionForField($field, $subSelect);
$subSelect->selectField($fieldExpression, $field);
+ $subSelect->setOrderBy(null);
$this->where($this->expressionForField($field, $this).' NOT IN ('.$subSelect->sql().')');
return $this;

0 comments on commit ed0341e

Please sign in to comment.
Something went wrong with that request. Please try again.