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:
Danae 2017-02-14 15:47:16 +13:00 committed by Damian Mooyman
parent 08787fa3e6
commit bb000ca893

View File

@ -95,7 +95,7 @@ class EditableMultipleOptionField extends EditableFormField
if ($live) {
foreach ($live as $option) {
$option->delete();
$option->deleteFromStage('Live');
}
}