Skip to content

Commit 38283c6

Browse files
Neograph734mglaman
authored andcommitted
Issue #3137225 by Neograph734, mglaman: Target bundles for entity reference fields should have the same key and value
1 parent 8a81386 commit 38283c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/order/src/Entity/Order.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
770770
->setDescription(t('Billing profile'))
771771
->setSetting('target_type', 'profile')
772772
->setSetting('handler', 'default')
773-
->setSetting('handler_settings', ['target_bundles' => ['customer']])
773+
->setSetting('handler_settings', ['target_bundles' => ['customer' => 'customer']])
774774
->setTranslatable(TRUE)
775775
->setDisplayOptions('form', [
776776
'type' => 'commerce_billing_profile',

modules/payment/src/Entity/PaymentMethod.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
264264
->setDescription(t('Billing profile'))
265265
->setSetting('target_type', 'profile')
266266
->setSetting('handler', 'default')
267-
->setSetting('handler_settings', ['target_bundles' => ['customer']])
267+
->setSetting('handler_settings', ['target_bundles' => ['customer' => 'customer']])
268268
->setDisplayOptions('form', [
269269
'type' => 'options_select',
270270
'weight' => 0,

0 commit comments

Comments
 (0)