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.
During order refresh, promotions are loaded. Promotions that target order items may be processed. These will then throw missing context errors.
the applies
method should ensure the offer type target entity matches the incoming entity.
Comment | File | Size | Author |
---|---|---|---|
#4 | interdiff-2-4.txt | 1.81 KB | mitrpaka |
#4 | promotions_should-2826222-4.patch | 2.79 KB | mitrpaka |
#2 | promotions_should-2826222-2.patch | 869 bytes | mglaman |
Comments
Comment #2
mglamanThis gets it working. However we need tests on this.
Comment #3
mitrpaka CreditAttribution: mitrpaka as a volunteer commentedTests added.
Comment #4
mitrpaka CreditAttribution: mitrpaka as a volunteer commentedTests added.
#PR: https://github.com/drupalcommerce/commerce/pull/568
Comment #6
mglamanThanks for the tests! Committed.