FIX Use baseDataClass for allVersions as with other methods

This commit is contained in:
Daniel Hensby 2017-11-30 16:51:05 +00:00
parent 2538f59ab7
commit 84d7afb347
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E

View File

@ -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();