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
5d037a96
Commit
5d037a96
authored
Sep 19, 2018
by
gmercer
Committed by
Renato Goncalves H
Sep 19, 2018
Browse files
Issue #3000335 by gmercer, RenatoG: hostEntityId set to false when calling fetchHostDetails()
parent
96ca8ca8
Changes
1
Hide whitespace changes
Inline
Side-by-side
field_collection.entity.inc
View file @
5d037a96
...
...
@@ -192,6 +192,7 @@ class FieldCollectionItemEntity extends Entity {
list
(
$this
->
hostEntityId
,
$this
->
hostEntityRevisionId
)
=
entity_extract_ids
(
$this
->
hostEntityType
,
$this
->
hostEntity
);
// If the host entity is not saved yet, set the id to FALSE. So
// fetchHostDetails() does not try to load the host entity details.
// Checking value of $this->hostEntityId.
if
(
!
isset
(
$this
->
hostEntityId
))
{
$this
->
hostEntityId
=
FALSE
;
}
...
...
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