- Issue created by @marchuk.vitaliy
- Assigned to agunjan085
- Status changed to Needs review
over 1 year ago 6:48am 1 August 2023 - last update
over 1 year ago 90 pass - Issue was unassigned.
We need to fix the following error message:
Drupal\\commerce_order\\Entity\\OrderItem::setUnitPrice(): Argument #1 ($unit_price) must be of type Drupal\\commerce_price\\Price, null given, called in /var/www/html/web/modules/contrib/commerce_api/src/Resource/CartAddResource.php on line 125
To do this we need to check if the price is resolved before we insert it.
Needs review
1.0
Code