{"data":{"id":"MDVA-39521","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where the user is not able to set shipping addresses on the cart with an empty telephone number via GraphQL.","categories":["GraphQL"],"components":["magento/module-customer","magento/module-quote-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-2/mdva-39521-unable-to-set-shipping-address-on-cart-via-graphql","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-2/mdva-39521-unable-to-set-shipping-address-on-cart-via-graphql.md","blobSha":"7b6ca0f74874652ad092c637da68177357726dc3","description":"The user is not able to set shipping address on the carts with an empty telephone number via GraphQL despite the fact that the Show Telephone is configured as optional.","stepsToReproduce":"1. Create a simple product. 1. Go to Stores > Configuration > Customers > Customer Configuration > Name and Address Options and set the Show Telephone as Optional. 1. Create an empty cart via GraphQL request. mutation { createEmptyCart } 1. Add product to cart. mutation { addSimpleProductsToCart( input: { cart_id: \"{ CART_ID }\" cart_items: [ { data: { quantity: 1 sku: \"24-MG04\" } } ] } ) { cart { items { id product { sku stock_status } quantity } } } } 1. Add address: GRAPHQL VARIABLES. { \"cartId\": \"6Efw00UbjPoP5cvTFhsswDTjpxs0Xupt\" } mutation ($cartId: String!) { setShippingAddressesOnCart(input: {cart_id: $cartId, shipping_addresses: {address: {firstname: \"John\", lastname: \"Doe\", company: \"Company Name\", street: [\"820 Burrard Street\"], city: \"Vancouver\", region: \"BC\", postcode: \"V6Z 2J1\", country_code: \"CA\", telephone: \"123-456-0000\", save_in_address_book: false}}}) { cart { shipping_addresses { firstname lastname company street city postcode telephone country { code label } } } } } Result: { \"data\": { \"setShippingAddressesOnCart\": { \"cart\": { \"shipping_addresses\": [ { \"firstname\": \"John\", \"lastname\": \"Canada\", \"company\": \"Company Name\", \"street\": [ \"820 Burrard Street\" ], \"city\": \"Vancouver\", \"postcode\": \"V6Z 2J1\", \"telephone\": \"123-456-0000\", \"country\": { \"code\": \"CA\", \"label\": \"CA\" } } ] } } } } 1. Add address with empty phone number. mutation ($cartId: String!) { setShippingAddressesOnCart(input: {cart_id: $cartId, shipping_addresses: {address: {firstname: \"John\", lastname: \"Canada\", company: \"Company Name\", street: [\"820 Burrard Street\"], city: \"Vancouver\", region: \"BC\", postcode: \"V6Z 2J1\", country_code: \"CA\", telephone: \"123-456-0000\", save_in_address_book: false}}}) { cart { shipping_addresses { firstname lastname company street city postcode telephone country { code label } } } } }","introducedInQpt":"1.1.2","createdFor":["2.4.2-p1"],"documentedRange":"2.4.0 - 2.4.3","scheduledFixRelease":"2.4.4"},"files":[{"package":"magento/magento2-base","constraint":">=2.4.0 <2.4.4","path":"patches/os/MDVA-39521_2.4.2-p1.patch","blobSha":"8bfda700086e23ff7eb20df65178599b44ed2fb8","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/MDVA-39521_2.4.2-p1.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-customer/Model/Config/Backend/Show/Customer.php","change":"modified","package":"magento/module-customer"},{"path":"vendor/magento/module-quote-graph-ql/etc/schema.graphqls","change":"modified","package":"magento/module-quote-graph-ql"}],"packages":["magento/module-customer","magento/module-quote-graph-ql"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2","2.4.1-p1","2.4.1","2.4.0-p1","2.4.0"],"magento-commerce":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2","2.4.1-p1","2.4.1","2.4.0-p1","2.4.0"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2","2.4.1-p1","2.4.1","2.4.0-p1","2.4.0"],"magento-commerce":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2","2.4.1-p1","2.4.1","2.4.0-p1","2.4.0"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch MDVA-39521 details"}