Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3192750-2.patch | 1.8 KB | jsacksick |
|
Comments
Comment #2
jsacksick CreditAttribution: jsacksick at Centarro commentedThe 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.
Comment #3
amateescu CreditAttribution: amateescu as a volunteer commentedLooks nice and simple :)
Comment #5
jsacksick CreditAttribution: jsacksick at Centarro commented