Skip to content

Commit f347904

Browse files
committed
Expand the list of unset fields in commerce_cart_form_entity_form_display_edit_form_alter().
1 parent 9b7bff4 commit f347904

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/cart/commerce_cart.module

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,12 @@ function commerce_cart_form_entity_form_display_edit_form_alter(array &$form, Fo
118118
$entity = $form_state->getFormObject()->getEntity();
119119
if ($form['#entity_type'] == 'commerce_order_item' && $entity->getMode() == 'add_to_cart') {
120120
$options = &$form['fields']['purchased_entity']['plugin']['type']['#options'];
121+
unset($options['commerce_entity_select']);
121122
unset($options['entity_reference_autocomplete_tags']);
122123
unset($options['entity_reference_autocomplete']);
123124
unset($options['inline_entity_form_complex']);
125+
unset($options['options_buttons']);
126+
unset($options['options_select']);
124127
}
125128
}
126129

0 commit comments

Comments
 (0)