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
a4ac052b
Commit
a4ac052b
authored
Mar 17, 2015
by
RoSk0
Committed by
Joel Muzzerall
Mar 17, 2015
Browse files
Issue #2453777 by RoSk0: Fixed logic issue in updateHostEntity().
parent
39c8b432
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
field_collection.entity.inc
field_collection.entity.inc
+3
-2
No files found.
field_collection.entity.inc
View file @
a4ac052b
...
...
@@ -213,7 +213,8 @@ class FieldCollectionItemEntity extends Entity {
/**
* Updates the wrapped host entity object.
*
* @param $entity
* @param object $entity
* Host entity.
*/
public
function
updateHostEntity
(
$entity
)
{
$this
->
fetchHostDetails
();
...
...
@@ -231,7 +232,7 @@ class FieldCollectionItemEntity extends Entity {
$this
->
hostEntity
=
$entity
;
$delta
=
$this
->
delta
();
if
(
isset
(
$entity
->
{
$this
->
field_name
}[
$this
->
langcode
][
$delta
][
'entity'
]))
{
$entity
->
{
$this
->
field_name
}[
$this
->
langcode
][
$delta
][
'entity'
]
=
$
entity
;
$entity
->
{
$this
->
field_name
}[
$this
->
langcode
][
$delta
][
'entity'
]
=
$
this
;
}
}
else
{
...
...
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