Skip to content
This repository
Browse code

BUGFIX: Ensure that subtracting a sorted DataList works.

  • Loading branch information...
commit ed0341e82fb3cd678341f4d8c41db0441cf0f7fa 1 parent 296ee1f
Sam Minnée authored August 23, 2012

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  model/DataQuery.php
1  model/DataQuery.php
@@ -656,6 +656,7 @@ public function subtract(DataQuery $subtractQuery, $field='ID') {
656 656
 		$fieldExpression = $this->expressionForField($field, $subSelect);
657 657
 		$subSelect->setSelect(array());
658 658
 		$subSelect->selectField($fieldExpression, $field);
  659
+		$subSelect->setOrderBy(null);
659 660
 		$this->where($this->expressionForField($field, $this).' NOT IN ('.$subSelect->sql().')');
660 661
 
661 662
 		return $this;

0 notes on commit ed0341e

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