Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUGFIX: Ensure that subtracting a sorted DataList works.

  • Loading branch information...
commit ed0341e82fb3cd678341f4d8c41db0441cf0f7fa 1 parent 296ee1f
Sam Minnée sminnee authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  model/DataQuery.php
1  model/DataQuery.php
View
@@ -656,6 +656,7 @@ public function subtract(DataQuery $subtractQuery, $field='ID') {
$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;
Please sign in to comment.
Something went wrong with that request. Please try again.