mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE: #2468 - Allow pagination on getManyManyComponent
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@57779 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
0b0e4c32d9
commit
05c1370e27
@ -951,7 +951,7 @@ class DataObject extends ViewableData implements DataObjectInterface {
|
||||
|
||||
$records = $query->execute();
|
||||
$result = $this->buildDataObjectSet($records, "ComponentSet", $query, $componentBaseClass);
|
||||
|
||||
if($result) $result->parseQueryLimit($query); // for pagination support
|
||||
if(!$result) {
|
||||
$result = new ComponentSet();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user