Describe your bug or feature request.

Currently, when an order is being created from the Inline entity form widget in the order admin, they're not aware of their parent order.

Thus, when the order item is being validated, it's not possible to access the parent order which can be quite useful from an availability checker, invoked by the PurchasedEntityAvailable constraint.

I currently have an availability checker that need access to the order, and it's currently crashing because of that.

CommentFileSizeAuthor
#2 3192750-2.patch1.8 KBjsacksick
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jsacksick created an issue. See original summary.

jsacksick’s picture

Status: Active » Needs review
FileSize
1.8 KB

The only problem is... What if you actually want to bypass the order item availability checks? This currently prevents me from submitting the form because one of the availability checkers indicates the the purchased entity is not available.

amateescu’s picture

Status: Needs review » Reviewed & tested by the community

Looks nice and simple :)

  • jsacksick committed 88f82b9 on 8.x-2.x
    Issue #3192750 by jsacksick: Make order items created via IEF aware of...
jsacksick’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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