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
c0a44258
Commit
c0a44258
authored
Mar 26, 2015
by
recrit
Committed by
Joel Muzzerall
Mar 26, 2015
Browse files
Issue #2458891 by recrit: Update host entity for revision changes
parent
a4ac052b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
field_collection.module
field_collection.module
+3
-0
No files found.
field_collection.module
View file @
c0a44258
...
...
@@ -460,6 +460,9 @@ function field_collection_field_update($host_entity_type, $host_entity, $field,
if
(
!
empty
(
$entity
->
is_new
))
{
$entity
->
setHostEntity
(
$host_entity_type
,
$host_entity
,
LANGUAGE_NONE
,
FALSE
);
}
else
{
$entity
->
updateHostEntity
(
$host_entity
);
}
// If the host entity is saved as new revision, do the same for the item.
if
(
!
empty
(
$host_entity
->
revision
))
{
...
...
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