- Issue created by @tonytheferg
- Status changed to Needs review
over 1 year ago 3:05pm 8 August 2023 - last update
over 1 year ago 779 pass, 2 fail Might need to check this also in the PriceCalculatedFormatter?
- 🇮🇱Israel jsacksick
I don't really understand how this happens? Technically the price field should be empty? So there should be no need to check if the number isn't empty otherwise that'd mean a price with just a currency code was saved somehow?
Steps to reproduce work. There is no currency code either. The format function doesn't seem to be OK passing a NULL value.
- 🇮🇱Israel jsacksick
Ofc it's not, i just don't understand why $items isn't simply empty.
- 🇮🇱Israel jsacksick
@tonytheferg: I just did this on a vanilla install and the order view page doesn't crash... What am I missing?
What formatter are you using for the order total? It doesn't crash with plain, but does with default.
- 🇮🇱Israel jsacksick
It works with the default formatter, I don't use plain, why would I use plain? :)
- Status changed to Closed: cannot reproduce
over 1 year ago 1:23pm 9 August 2023 - 🇮🇱Israel jsacksick
I mean... I use the default view, which uses the default formatter.
Anyway, there's no issue I can reproduce on my side, so looks like I'll close this... without reproducible steps on a clean install. Sorry for the runaround. It was this patch:
https://www.drupal.org/project/commerce/issues/3343679 ✨ Convert the order balance computed field to a base field Needs work- Status changed to Active
over 1 year ago 5:44pm 9 August 2023 - 🇺🇸United States TomTech
Re-opening this, as there actually is an issue in the
OrderBalanceFieldItemList
class creating a NULL commerce_price instance.The patch in [33343679-13] includes a fix for this issue.
- Status changed to Closed: cannot reproduce
over 1 year ago 7:18am 14 August 2023 - 🇮🇱Israel jsacksick
So why would we reopen this? As this is a consequence of the other patch which is not even committed?