FIX: Re-set finalisedQuery to allow recreation of iterator.

This commit is contained in:
Sam Minnee 2017-06-29 11:47:42 +12:00 committed by Guy Sartorelli
parent 9c7ecb1f79
commit 9eb9e13071
No known key found for this signature in database
GPG Key ID: F313E3B9504D496A

View File

@ -881,6 +881,9 @@ class DataList extends ViewableData implements SS_List, Filterable, Sortable, Li
foreach ($this->getFinalisedQuery() as $row) {
yield $this->createDataObject($row);
}
// Re-set the finaliseQuery so that it can be re-executed
$this->finalisedQuery = null;
}
/**