mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX: Re-set finalisedQuery to allow recreation of iterator.
This commit is contained in:
parent
9c7ecb1f79
commit
9eb9e13071
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user