mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FIX Use base class (not remapping target class) when looking up whether object is versioned
This commit is contained in:
parent
953153500d
commit
d651d0fbfc
@ -407,7 +407,7 @@ class DatabaseAdmin extends Controller
|
||||
|
||||
// Remap versioned table class name values as well
|
||||
/** @var Versioned|DataObject $class */
|
||||
$class = DataObject::singleton($newClassName);
|
||||
$class = DataObject::singleton($dataClass);
|
||||
if ($class->hasExtension(Versioned::class)) {
|
||||
if ($class->hasStages()) {
|
||||
$updateQueries[] = sprintf($updateQuery, '_Live');
|
||||
|
Loading…
x
Reference in New Issue
Block a user