From bb000ca893c4a98038becf9a51ad2ed9041b22f5 Mon Sep 17 00:00:00 2001 From: Danae Date: Tue, 14 Feb 2017 15:47:16 +1300 Subject: [PATCH] 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) --- code/model/editableformfields/EditableMultipleOptionField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/model/editableformfields/EditableMultipleOptionField.php b/code/model/editableformfields/EditableMultipleOptionField.php index fb966a9..f5ed98f 100644 --- a/code/model/editableformfields/EditableMultipleOptionField.php +++ b/code/model/editableformfields/EditableMultipleOptionField.php @@ -95,7 +95,7 @@ class EditableMultipleOptionField extends EditableFormField if ($live) { foreach ($live as $option) { - $option->delete(); + $option->deleteFromStage('Live'); } }