mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
FIX: Change delete() to deleteFromStage() for EditableMultipleOptionField::doPublish(). This fixes the issue where options were being removed from the draft table instead of the Live table, effectively deleting them from the CMS (#545)
This commit is contained in:
parent
08787fa3e6
commit
bb000ca893
@ -95,7 +95,7 @@ class EditableMultipleOptionField extends EditableFormField
|
||||
|
||||
if ($live) {
|
||||
foreach ($live as $option) {
|
||||
$option->delete();
|
||||
$option->deleteFromStage('Live');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user