If I switch the line item field widget on the Order field settings to inline entity form, and view either /new or /edit, I receive this error when adding a new item:

Notice: Undefined index: line_item_id in commerce_registration_form_commerce_order_ui_order_form_alter() (line 711 of [...]/contrib/commerce_registration/commerce_registration.module).

and then this error when I try to edit:

EntityMetadataWrapperException: Invalid data value given. Be sure it matches the required data type and format. in EntityDrupalWrapper->set() (line 744 of [...]/contrib/entity/includes/entity.wrapper.inc).

That or they are both firing at the same time for either AJAX request. What's goin on here? It's probably worth noting that I am using the commerce_custom_line_items module. Entity and IEF are both dev.

Comments

rerooting’s picture

Title: Undefined index: line_item_id in commerce_registration_form_commerce_order_ui_order_form_alter() » IEF Is Incompatible with Commerce Registration

Obviously something funky is happening with Commerce Registration. IEF works fine with Commerce Registration disabled. Is this on IEF's end or is it with Commerce Registration?

rerooting’s picture

Status: Active » Closed (works as designed)

Ok! Works with commerce_registration-7.x-3.x-dev - just tested both with registration line items and custom line items. Hopefully anyone who runs into this issue can find this and know what to do!

mknapik’s picture

Just wanted to confirm that I have the same issue. When I turned off registration, it started working again.

mknapik’s picture

Issue summary: View changes

obfoosimacated