Potential error on order edit page when address has extension attributes #10438
Labels
bug report
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Fixed in 2.3.x
The issue has been fixed in 2.3 release line
Issue: Cannot Reproduce
Cannot reproduce the issue on the latest `2.4-develop` branch
Issue: Clear Description
Gate 2 Passed. Manual verification of the issue description passed
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Reproduced on 2.1.x
The issue has been reproduced on latest 2.1 release
Reproduced on 2.2.x
The issue has been reproduced on latest 2.2 release
Reproduced on 2.3.x
The issue has been reproduced on latest 2.3 release
Potential error on order edit page when address has extension attributes
Preconditions
Steps to reproduce
sales_order_address_load_after
event (any other way is also ok):Expected result
Actual result
Recoverable Error: Object of class Magento\Sales\Api\Data\OrderAddressExtension could not be converted to string in .../module-sales/Model/AdminOrder/Create.php on line 503
The code on this line does the following:
The problem is that
$shippingAddress
object could potentially haveextension_attributes
field in the data and that field is an object (which is correct).When you diff arrays with object in a field you get the error:
array_diff_assoc
converts values to strings according to the documentation:The text was updated successfully, but these errors were encountered: