- Issue created by @arif.zisu
- 🇮🇳India arif.zisu Kolkata
index eb9c2cd2..191472bc 100644
--- a/docroot/sites/all/modules/field_collection/field_collection.module
+++ b/docroot/sites/all/modules/field_collection/field_collection.module
@@ -1023,7 +1023,7 @@ function field_collection_entity_preload($entities, $langcode, &$items, $fields)if ($rekey) {
// Rekey the items array.
- $new_items[$id] = array_values($new_items[$id]);
+ $new_items[$id] = ($new_items[$id] && is_array($new_items[$id])) ? array_values($new_items[$id]) : [];
}
}
field_collection_entity_preload($new_entities, $langcode, $new_items, $fields);Fixed my issue
- 🇮🇳India arif.zisu Kolkata
Issue occurred once add empty field collection and save the node
- First commit to issue fork.
- First commit to issue fork.
- Merge request !9Issue#3419505: Fix issue if the field collection is empty. → (Open) created by sakthi_dev
- Open on Drupal.org →Core: 7.x + Environment: PHP 7.2 & MySQL 5.5last update
about 1 year ago Waiting for branch to pass - Assigned to himanshu_jhaloya
- 🇮🇳India himanshu_jhaloya Indore
created the patch for the error please review
- Issue was unassigned.
- Status changed to Needs review
about 1 year ago 1:43pm 15 February 2024 - Open on Drupal.org →Core: 7.x + Environment: PHP 7.2 & MySQL 5.5last update
about 1 year ago Waiting for branch to pass - Status changed to Needs work
about 1 year ago 9:47am 16 February 2024 - 🇩🇰Denmark ressa Copenhagen
@himanshu_jhaloya: Manually attaching patches is being phased out, and you should create a patch and Merge Request with the Gitlab integration. This is especially so, if an existing Gitlab patch is already exists.
DrupalCI and all patch testing will be turned off on July 1, 2024 →