Use actual classname in SearchVariantVersioned

This commit is contained in:
Brett Tasker 2017-04-26 23:17:12 +12:00
parent 59c3ad2ded
commit 7baf7d5758
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class SearchVariantVersioned extends SearchVariant
$stage = 'Stage';
if (preg_match('/^(.*)_Live$/', $table, $matches)) {
$class = $matches[1];
$class = DataObject::getSchema()->tableClass($matches[1]);
$stage = 'Live';
}