Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
drupal.org
field_collection
Commits
2231eccb
Commit
2231eccb
authored
Jan 10, 2012
by
davereid
Committed by
Tim Plunkett
Jan 10, 2012
Browse files
Issue #1399746 by Dave Reid: Fixed fatal error if a referenced field collection is deleted.
parent
a4dfe556
Changes
1
Hide whitespace changes
Inline
Side-by-side
field_collection.module
View file @
2231eccb
...
...
@@ -991,6 +991,14 @@ function field_collection_field_widget_form(&$form, &$form_state, $field, $insta
field_form_set_state
(
$field_parents
,
$field_name
,
$language
,
$form_state
,
$field_state
);
}
// If the field collection entity did not load, we need to return nothing
// for the form otherwise fatal errors with entity_extract_ids() will
// continue in validation and save.
if
(
empty
(
$field_collection_item
))
{
$recursion
--
;
return
array
();
}
field_attach_form
(
'field_collection_item'
,
$field_collection_item
,
$element
,
$form_state
,
$language
);
if
(
empty
(
$element
[
'#required'
]))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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