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.
I wanted to use the getOrder() method from the CommerceReturn class, but it always return FALSE instead the expected order.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2247199-commerce_return-getOrder.patch | 722 bytes | theo_ |
Comments
Comment #1
theo_ CreditAttribution: theo_ commentedHere is a patch which fix the issue by using array_key_exists() instead of in_array() because commerce_order_reference is part of the property info array keys and not the array values.
Comment #2
jkuma CreditAttribution: jkuma commentedThank you theo_ for catching this bug! Please feel free to commit it at any moment when you'll get the chance to do it.
Comment #3
theo_ CreditAttribution: theo_ commentedThanks you O-sensei goldorak !
Committed to branch 7.x-2.x (commit)