From 84d7afb3477885e9d69f2ac10838179efc1d3b91 Mon Sep 17 00:00:00 2001 From: Daniel Hensby Date: Thu, 30 Nov 2017 16:51:05 +0000 Subject: [PATCH] FIX Use baseDataClass for allVersions as with other methods --- model/Versioned.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/Versioned.php b/model/Versioned.php index 4dc191628..b49b00885 100644 --- a/model/Versioned.php +++ b/model/Versioned.php @@ -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();