Commit b38b1b57 authored by jsacksick's avatar jsacksick
Browse files

Issue #3228892 by jsacksick: Target bundles for entity reference fields should...

Issue #3228892 by jsacksick: Target bundles for entity reference fields should have the same key and value.
.
parent fde68a5e
...@@ -593,7 +593,7 @@ class Shipment extends ContentEntityBase implements ShipmentInterface { ...@@ -593,7 +593,7 @@ class Shipment extends ContentEntityBase implements ShipmentInterface {
->setRequired(TRUE) ->setRequired(TRUE)
->setSetting('target_type', 'profile') ->setSetting('target_type', 'profile')
->setSetting('handler', 'default') ->setSetting('handler', 'default')
->setSetting('handler_settings', ['target_bundles' => ['customer']]) ->setSetting('handler_settings', ['target_bundles' => ['customer' => 'customer']])
->setDisplayOptions('form', [ ->setDisplayOptions('form', [
'type' => 'commerce_shipping_profile', 'type' => 'commerce_shipping_profile',
'weight' => -10, 'weight' => -10,
...@@ -711,7 +711,7 @@ class Shipment extends ContentEntityBase implements ShipmentInterface { ...@@ -711,7 +711,7 @@ class Shipment extends ContentEntityBase implements ShipmentInterface {
$fields['shipping_profile'] = clone $base_field_definitions['shipping_profile']; $fields['shipping_profile'] = clone $base_field_definitions['shipping_profile'];
$fields['shipping_profile']->setSetting('handler_settings', [ $fields['shipping_profile']->setSetting('handler_settings', [
'target_bundles' => [ 'target_bundles' => [
$shipment_type->getProfileTypeId(), $shipment_type->getProfileTypeId() => $shipment_type->getProfileTypeId(),
], ],
]); ]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment