Hello,

When commerce_license module is enabled and I am on the product display of product that has a file with license I get the following notice.

Notice: Undefined index: #bundle in commerce_price_table_form_commerce_product_ui_product_form_alter() (line 523 of ../sites/all/modules/contrib/commerce_price_table/commerce_price_table.module).

I think the form is called from IEF, and therefor the alter is out of context. A check would be useful here.

Mihai

Comments

Dubs’s picture

Something like this worked in our case: -

if ($form['#entity_type'] != 'commerce_product') {
    return;
  }

However, I'm not 100% sure this will work in all cases as I've not used this module apart from supporting one client today.