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
45e381f7
Commit
45e381f7
authored
Apr 08, 2019
by
nikhilbanait
Committed by
Ra Mänd
Apr 08, 2019
Browse files
Issue #2991561 by Nikhil Banait: Field collection first item remove not trigger
parent
5be6d23a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
field_collection.entity.inc
field_collection.entity.inc
+1
-1
No files found.
field_collection.entity.inc
View file @
45e381f7
...
...
@@ -599,7 +599,7 @@ class FieldCollectionItemEntity extends Entity {
entity_get_controller
(
'field_collection_item'
)
->
resetCache
(
array
(
$this
->
item_id
));
entity_revision_delete
(
'field_collection_item'
,
$this
->
revision_id
);
}
if
(
!
$row
&&
!
isset
(
$this
->
hostEntity
()
->
{
$this
->
field_name
}[
$this
->
langcode
()][
$this
->
delta
()]))
{
else
{
// Delete if there is no existing revision or translation to be saved.
$this
->
delete
(
$skip_host_update
);
}
...
...
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