There are a few module_exists checks missing in commerce_line_item.inline_entity_form.inc. If commerce_product_reference and commerce_cart are disabled an error is thrown, since they are not a dependency of commerce_line_item.

Comments

archnode’s picture

Title: Error when commerce_cart ist diabled but inline entity form used on line items » Error when commerce_cart ist disabled but inline entity form used on line items
StatusFileSize
new2.26 KB

A patch that adds the checks to avoid errors.

bojanz’s picture

Status: Active » Needs review

Just curious, how does your site function without commerce_product_reference? What kind of line items do you have?

The patch looks fine at a glance.

archnode’s picture

We are evaluating parts of commerce for kind of an erp/billing solution where there are potentially just custom line items without associated products. Thats why we have some rather uncommon use cases.

bojanz’s picture

Title: Error when commerce_cart ist disabled but inline entity form used on line items » Make line item integration work when commerce_cart or commerce_product_reference are not enabled.
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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