Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
drupal.org
field_collection
Commits
1913cdf5
Commit
1913cdf5
authored
Jun 26, 2021
by
zorya
Committed by
Ra Mänd
Jun 26, 2021
Browse files
Issue #3083368 by zorya: Collection values lost on save in revisions
parent
8d29cabe
Changes
1
Hide whitespace changes
Inline
Side-by-side
field_collection.module
View file @
1913cdf5
...
...
@@ -1018,9 +1018,10 @@ function field_collection_entity_preload($entities, $langcode, &$items, $fields)
}
}
}
// Otherwise, unset the instance value, since the field colletion entity
// does not exist.
else
{
// Otherwise, check to see if the instance's field_collection value has
// already been set. If not, unset the instance value, since the field
// collection entity does not exist.
elseif
(
!
isset
(
$items
[
$id
][
$delta
][
'field_collection'
]))
{
unset
(
$new_items
[
$id
][
$delta
]);
$rekey
=
TRUE
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment