Commit 8d29cabe authored by hadsie's avatar hadsie Committed by Renato Gonçalves H
Browse files

Issue #3205186 by hadsie, RenatoG: Avoid updating non-draft content when using drafty

parent 373fbede
......@@ -575,6 +575,11 @@ function field_collection_field_update($host_entity_type, $host_entity, $field,
if (!empty($top_host->workbench_moderation['updating_live_revision'])) {
// Don't modify the field collections if using drafty and this is not a
// draft revision.
if (module_exists('drafty') && empty($top_host->is_draft_revision)) {
// Load items from the original entity.
$items_original = !empty($original->{$field['field_name']}[$langcode]) ? $original->{$field['field_name']}[$langcode] : array();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment