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,
        ];
CommentFileSizeAuthor
#2 3080696-duplicated-options-key.patch783 bytesdermario
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dermario created an issue. See original summary.

dermario’s picture

Status: Active » Needs review
FileSize
783 bytes
BramDriesen’s picture

Status: Needs review » Reviewed & tested by the community

Looks good :)

justin2pin’s picture

Status: Reviewed & tested by the community » Postponed

Thanks 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.

justin2pin’s picture

Status: Postponed » Fixed

Thanks for reporting and for the patch. Flagging as fixed since #3068270: Remove Inline Entity Form module dependency removed the duplicate key.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.