commerce_customer_field_widget_info_alter() registers the options_select widget to be usable for the commerce_customer_profile_reference field type, regardless of the options module is enabled.

I think commerce_customer_field_widget_info_alter should check if the options_select widget is available. Another route is to make add the options module to the dependencies, but I don't think that's the best option.

Comments

rolf van de krol’s picture

Status: Active » Needs review
StatusFileSize
new669 bytes

Attached is a patch to make commerce_customer_field_widget_info_alter check if the options_select widget is available.

rszrama’s picture

Status: Needs review » Fixed

Your patch is perfect, and I agree about not adding the dependency. Committed!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.