You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use the functions getLineItemById and getAllLineItemsByOrderId you get inconsistent snapshot data.
One is already json decoded, while the other returns the json as a string.
In craft\commerce\services\LineItems
Steps to reproduce
Get a lineItem by using getLineItemById and look at the snapshot data
Get a lineItem by using getAllLineItemsByOrderId and look at the snapshot data
Expected behavior
Both functions return the snapshot in the same manner
Actual behavior
getLineItemById returns the data as string
getAllLineItemsByOrderId returns the data as array
Craft CMS version
Craft Pro 4.3.7.1
Craft Commerce version
4.2.11
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered:
What happened?
Description
When you use the functions getLineItemById and getAllLineItemsByOrderId you get inconsistent snapshot data.
One is already json decoded, while the other returns the json as a string.
In craft\commerce\services\LineItems
Steps to reproduce
Expected behavior
Both functions return the snapshot in the same manner
Actual behavior
getLineItemById returns the data as string
getAllLineItemsByOrderId returns the data as array
Craft CMS version
Craft Pro 4.3.7.1
Craft Commerce version
4.2.11
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: