Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In line 1174
$entity->revision_id != $item['revision_id']) {
// A non-default revision is a referenced, so load this one.
$entity = field_collection_item_revision_load($item['revision_id']);
}
The code doesn't check for non null values of the item revision. When that happens it overwrites the entity to a null value.
Comment | File | Size | Author |
---|---|---|---|
#3 | field_collection-null-values-on-editing-2662210-2-7.x-1.x.patch | 879 bytes | ashalan |
Comments
Comment #2
ashalan CreditAttribution: ashalan as a volunteer commentedComment #3
ashalan CreditAttribution: ashalan as a volunteer commentedHere is a patch to fix this
Comment #4
ashalan CreditAttribution: ashalan as a volunteer commentedComment #5
Chris Matthews CreditAttribution: Chris Matthews commentedThe patch in #3 does not apply to the latest 7.x-1.x-dev snapshot and may be too old to reroll, but I went ahead and tagged the issue accordingly.