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.
On PHP 7.4+ you might see an array access error on a boolean value when rendering a View that uses the order balance Views field. The reason is sometimes commerce_payment_order_balance()
is FALSE
. In my testing, this was due to an order having an order total in one currency but payment totals in another.
This issue is for the quick fix of accommodating the FALSE
return value. There are legitimate reasons a balance may be indeterminate, and we should support that.
I'm going to open a separate issue for researching why I had a mismatch, because I did not expect that. 😅
Comment | File | Size | Author |
---|---|---|---|
#2 | 3253379-2.unknown-balance-placeholder.patch | 909 bytes | rszrama |
|
Comments
Comment #2
rszrama CreditAttribution: rszrama at Centarro commentedPatch attached.
Comment #3
rszrama CreditAttribution: rszrama at Centarro commentedCommitted!