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.
Function commerce_coupon_load_coupon_code_discounts does not work since commerce_discount module renamed schema field "enabled" to "status"
Comment | File | Size | Author |
---|---|---|---|
#13 | 2552657-13.patch | 3.17 KB | mglaman |
| |||
#11 | 2552657-11.patch | 3.16 KB | mglaman |
#8 | 2552657-8.patch | 2.58 KB | mglaman |
#4 | commerce_coupon_load_coupon_code_discounts.patch | 1.15 KB | xSDx |
|
Comments
Comment #2
drupov CreditAttribution: drupov commentedThe problem is also that the function queries for a non-existing field
commerce_coupon_reference
Comment #3
xSDx CreditAttribution: xSDx commentedConfirming the bug exists
Comment #4
xSDx CreditAttribution: xSDx at Websolutions Agency commentedProviding patch for issue
Comment #5
xSDx CreditAttribution: xSDx at Websolutions Agency commentedPlease someone review the patch. Tnx
Comment #6
tamerzg CreditAttribution: tamerzg commentedPatch in #4 works for me.
Comment #7
mglamanLinking related issue which caused changed.
Comment #8
mglamanUpdated patch which also adds test.
Comment #10
mglamanDid this function ever work? The
commerce_coupon_reference
is not found anywhere in current code base.Edit: Re-read. That is what #2 confirms, and #4 fixes.
Comment #11
mglamanOkay, this should pass, now.
Comment #13
mglamanOops. PhpStorm converted to short array syntax in new test.
Comment #15
mglamanCommitted. Thanks everyone!