Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
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
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
field_collection.module
field_collection.module
+4
-3
No files found.
field_collection.module
View file @
1913cdf5
...
@@ -1018,9 +1018,10 @@ function field_collection_entity_preload($entities, $langcode, &$items, $fields)
...
@@ -1018,9 +1018,10 @@ function field_collection_entity_preload($entities, $langcode, &$items, $fields)
}
}
}
}
}
}
// Otherwise, unset the instance value, since the field colletion entity
// Otherwise, check to see if the instance's field_collection value has
// does not exist.
// already been set. If not, unset the instance value, since the field
else
{
// collection entity does not exist.
elseif
(
!
isset
(
$items
[
$id
][
$delta
][
'field_collection'
]))
{
unset
(
$new_items
[
$id
][
$delta
]);
unset
(
$new_items
[
$id
][
$delta
]);
$rekey
=
TRUE
;
$rekey
=
TRUE
;
}
}
...
...
Write
Preview
Markdown
is supported
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