Notice: Undefined variable: element in commerce_product_reference_field_formatter_settings_form() (line 636 of sites/all/modules/commerce/modules/product_reference/commerce_product_reference.module)

Hello,

I am getting this notice when adding a commerce product reference field to a Views and selecting the SKU formatter.

Comments

rszrama’s picture

Version: 7.x-1.5 » 7.x-1.x-dev
Component: Views integration » Product reference
Status: Active » Closed (fixed)

It was simply an array needing initialization; it had no effect on the display, but the array was only getting created when the "Rendered product" display formatter was selected.

Easy commit: http://drupalcode.org/project/commerce.git/commitdiff/f027e37