Skip to content

Commit

Permalink
FIX: Change delete() to deleteFromStage() for EditableMultipleOptionF…
Browse files Browse the repository at this point in the history
…ield::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)
  • Loading branch information
danaenz authored and Damian Mooyman committed Feb 14, 2017
1 parent 08787fa commit bb000ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function doPublish($fromStage, $toStage, $createNewVersion = false)

if ($live) {
foreach ($live as $option) {
$option->delete();
$option->deleteFromStage('Live');
}
}

Expand Down

0 comments on commit bb000ca

Please sign in to comment.