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 \Drupal\entity_reference_layout\Plugin\Field\FieldWidget\EntityReferenceLayoutWidget::prepareFormState() i found a duplicated 'options' array key, that could be removed.
$layout_properties = [
'options' => [],
'options' => isset($item->options) ? $item->options : [],
'config' => !empty($item->config) ? $item->config : [],
'region' => isset($item->region) ? $item->region : '',
'layout' => isset($item->layout) ? $item->layout : '',
'entity_bundle' => $item->entity->bundle(),
'parent' => -1,
];
Comment | File | Size | Author |
---|---|---|---|
#2 | 3080696-duplicated-options-key.patch | 783 bytes | dermario |
Comments
Comment #2
dermarioComment #3
BramDriesenLooks good :)
Comment #4
justin2pin CreditAttribution: justin2pin at Aten Design Group commentedThanks for this. I'm postponing non-critical issues for EntityReferenceLayoutWidget until #3068270: Remove Inline Entity Form module dependency (complete rewrite of the widget) is resolved.
In the meantime, would love help reviewing #3068270: Remove Inline Entity Form module dependency :).
Thanks again.
Comment #5
justin2pin CreditAttribution: justin2pin at Aten Design Group commentedThanks for reporting and for the patch. Flagging as fixed since #3068270: Remove Inline Entity Form module dependency removed the duplicate key.