mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Use baseDataClass for allVersions as with other methods
This commit is contained in:
parent
2538f59ab7
commit
84d7afb347
@ -1050,7 +1050,7 @@ class Versioned extends DataExtension implements TemplateGlobalProvider {
|
||||
$oldMode = self::get_reading_mode();
|
||||
self::reading_stage('Stage');
|
||||
|
||||
$list = DataObject::get(get_class($this->owner), $filter, $sort, $join, $limit);
|
||||
$list = DataObject::get(ClassInfo::baseDataClass($this->owner), $filter, $sort, $join, $limit);
|
||||
if($having) $having = $list->having($having);
|
||||
|
||||
$query = $list->dataQuery()->query();
|
||||
|
Loading…
Reference in New Issue
Block a user