mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Fix: Allow removing the Versioned extension from EditableFormField
fixes #1082
This commit is contained in:
parent
e2f4378fff
commit
02c15f321a
@ -345,9 +345,11 @@ class EditableFormField extends DataObject
|
||||
|
||||
// make sure to migrate the class across (prior to v5.x)
|
||||
DB::query("UPDATE \"EditableFormField\" SET \"ParentClass\" = 'Page' WHERE \"ParentClass\" IS NULL");
|
||||
if (self::has_extension(Versioned::class)) {
|
||||
DB::query("UPDATE \"EditableFormField_Live\" SET \"ParentClass\" = 'Page' WHERE \"ParentClass\" IS NULL");
|
||||
DB::query("UPDATE \"EditableFormField_Versions\" SET \"ParentClass\" = 'Page' WHERE \"ParentClass\" IS NULL");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return fields to display on the 'Display Rules' tab
|
||||
|
Loading…
Reference in New Issue
Block a user