We have a custom constraint for the purchased entity reference in the order item "PurchasedEntityAvailable". It runs the availability checkers to validate the referenced entity. The issue there is that the order item that runs validation does not have an order reference, even though it is created on the order form. This leads to unnecessary validation for non-draft orders, and incorrect customer/store in context.

Issue fork commerce-3548649

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

tbkot created an issue. See original summary.

tbkot’s picture

Status: Active » Needs review
zaporylie’s picture

Priority: Normal » Major

Bumping to major as missing context is causing orders placed via the Admin UI to run on the incorrect context.

jsacksick made their first commit to this issue’s fork.

  • jsacksick committed bb98d578 on 3.x authored by tbkot
    fix: #3548649 Missing order context in the new widget for order items...
jsacksick’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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