- Issue created by @VasiliyRepin
- 🇮🇱Israel jsacksick
Managed to reproduce this, somehow it seems that the code in
OrderItem::bundleFieldDefinitions()
doesn't work as expected and especially these lines of code:$fields['purchased_entity']->setDisplayOptions('form', [ 'region' => 'hidden', ]);
This could be a Drupal core bug... Can't figure out exactly what's wrong yet, will keep digging.
- 🇮🇱Israel jsacksick
Removing
$fields['purchased_entity']->setDisplayConfigurable('form', FALSE);
fixes the crash, but that then makes the field configurable even though we shouldn't be able to add it to the form since there is no purchasable entity type set, so the field can't work properly... - 🇺🇸United States abenguyen
Also running into this issue..
Drupal 10.3.6
PHP 8.2