Describe your bug or feature request.
If a bug, provide steps to reproduce it from a clean install.
- Create a new order type from the UI
- Create a new order of that type
- Click on "Add order items" below the order items table
- Notice the modal is empty

Also, I realized the order_items field still uses the Inline Entity Form widget by default:
->setDisplayOptions('form', [
'type' => 'inline_entity_form_complex',
'weight' => 0,
'settings' => [
'override_labels' => TRUE,
'label_singular' => t('order item'),
'label_plural' => t('order items'),
'removed_reference' => 'delete',
],
])
I thought we changed that, and made our new order items widget the default.
Comments
Comment #2
jsacksick commentedComment #4
jsacksick commentedAlso the "Order items" label is visible on a new order type.
Comment #6
jsacksick commentedI'm not sure I understand the proposed changes... Is it not sufficient to have access control for the route? Why do we need changes to the form method etc?
Also the tests seem to be failing.
Comment #7
tbkot commentedComment #8
jsacksick commented@tbkot: Ok after pulling your changes, with no order item type configured, The add items button is gone...
But after creating a new order item type referencing it, I have an empty modal which is the main issue I wanted to get fixed with this report.
Is there anything we can do to fix this?
Also, the "Order items" label should be hidden:
Modal still empty:

Comment #9
jsacksick commentedComment #11
jsacksick commented