{"data":{"id":"ACSD-66139","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where GraphQL calls to place an order for a non-existent or inactive cart returned an UNDEFINED error code.","categories":["GraphQL"],"components":["magento/module-quote-graph-ql","magento/module-async-order-graph-ql"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-67/acsd-66139-graphql-order-fails-with-undefined-error-for-inactive-cart","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-67/acsd-66139-graphql-order-fails-with-undefined-error-for-inactive-cart.md","blobSha":"0a2aaa8cf79c29feef642e05d208e07f4b7c4da3","description":"GraphQL returns an UNDEFINED error code instead of a specific one when placing an order for a non-existent or inactive cart, if the error message is translated.","stepsToReproduce":"1. Add app/i18n/Magento/de_DE/de_DE.csv and include the following error string translation: \"Could not find a cart with ID \"\"%masked_cart_id\"\"\",\"Oh noo, we have an UNDEFINED issue, see!\",module,Magento_QuoteGraphQl 1. In the Admin panel, go to Stores > Settings > All Stores > Create Store View to create a store view. 1. Set Code to test. 1. Assign german language to the newly created store view. 1. Run setup:upgrade and setup:static-content:deploy -f. 1. Run the following GraphQL query with header Store:test: mutation { placeOrder(input: { cart_id: \"test\" }) { orderV2 { id number } } }","introducedInQpt":"1.1.67","createdFor":["2.4.7-p5"],"documentedRange":"2.4.7 - 2.4.7-p6","scheduledFixRelease":"2.4.9"},"files":[{"package":"magento/magento2-base","constraint":">=2.4.7 <2.4.7-p8","path":"patches/os/ACSD-66139_2.4.7-p5.patch","blobSha":"d01453b9978154a7353fc05e91964b2e583fc7d8","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-66139_2.4.7-p5.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-quote-graph-ql/Model/Cart/GetCartForCheckout.php","change":"modified","package":"magento/module-quote-graph-ql"}],"packages":["magento/module-quote-graph-ql"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.7-p7","2.4.7-p6","2.4.7-p5","2.4.7-p4","2.4.7-p3","2.4.7-p2","2.4.7-p1","2.4.7"],"magento-commerce":["2.4.7-p7","2.4.7-p6","2.4.7-p5","2.4.7-p4","2.4.7-p3","2.4.7-p2","2.4.7-p1","2.4.7"],"mage-os":[]},"unknownVersions":[],"requires":["ACSD-55100","ACSD-62965"],"replacedWith":null,"deprecated":false},{"package":"magento/magento2-ee-base","constraint":">=2.4.7 <2.4.7-p8","path":"patches/commerce/ACSD-66139_2.4.7-p5.patch","blobSha":"c7eff74fc8c05af313da9d8c00e033ef71afdec5","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/ACSD-66139_2.4.7-p5.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-async-order-graph-ql/Model/Cart/PlaceOrderAsync.php","change":"modified","package":"magento/module-async-order-graph-ql"}],"packages":["magento/module-async-order-graph-ql"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.7-p7","2.4.7-p6","2.4.7-p5","2.4.7-p4","2.4.7-p3","2.4.7-p2","2.4.7-p1","2.4.7"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":["2.4.7-p7","2.4.7-p6","2.4.7-p5","2.4.7-p4","2.4.7-p3","2.4.7-p2","2.4.7-p1","2.4.7"],"magento-commerce":["2.4.7-p7","2.4.7-p6","2.4.7-p5","2.4.7-p4","2.4.7-p3","2.4.7-p2","2.4.7-p1","2.4.7"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-66139 details"}