-
aaronbauman β
committed 270894d5 on 2.x
Issue #3276642 by corwino: Consider purchased entity can be NULL
-
aaronbauman β
committed 270894d5 on 2.x
The current implementation considers that an order item necessarily has a purchased entity. This is not always the case (Special order item type, product deleted whilst ongoing cart...)
Create a new order item type with no purchasable entity type. Add an order item of that type to an order and save. Some warning messages are thrown.
Check that the purchasable entity of an order item exists before using it.
Fixed
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Issue #3276642 by corwino: Consider purchased entity can be NULL