Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Tax
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Nov 2019 at 14:21 UTC
Updated:
23 Nov 2019 at 21:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
bojanz commentedThis test is highlighting a real problem.
You set TRUE as the value, but as soon as you save it, it becomes "1". TypedData does not cast on load, it's up to us to do that. That means that every boolean getter in Commerce must do a (bool) cast.
Comment #3
bojanz commentedSome getters already had the cast. Some didn't. Now unified.
Checked contrib (Recurring, Shipping, Pricelist, Wishlist, etc) and they all seem to have casts.
Comment #5
bojanz commentedAnd with that, our build is green again on 8.8 and 8.9