mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 14:05:29 +02:00
Use actual classname in SearchVariantVersioned
This commit is contained in:
parent
59c3ad2ded
commit
7baf7d5758
@ -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';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user