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
bf39de1f
Commit
bf39de1f
authored
Mar 01, 2019
by
basvanderheijden
Committed by
Ra Mänd
Mar 01, 2019
Browse files
Issue #1280568 by basvanderheijden: Embedded widget crash Node edit form
parent
80d1275b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
field_collection.module
field_collection.module
+1
-1
No files found.
field_collection.module
View file @
bf39de1f
...
...
@@ -1232,7 +1232,7 @@ function field_collection_field_attach_form($entity_type, $entity, &$form, &$for
$field
=
field_info_field
(
$field_name
);
if
(
$field
[
'type'
]
==
'field_collection'
&&
field_collection_hide_blank_items
(
$field
)
&&
field_access
(
'edit'
,
$field
,
$entity_type
)
&&
$instance
[
'widget'
][
'type'
]
==
'field_collection_embed'
)
{
&&
field_access
(
'edit'
,
$field
,
$entity_type
))
{
$element_langcode
=
$form
[
$field_name
][
'#language'
];
if
(
$form
[
$field_name
][
$element_langcode
][
'#max_delta'
]
>
0
)
{
...
...
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