{"data":{"id":"ACSD-66072","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where related products were not returned via GraphQL on the Product Detail Page due to an internal server error when \"Related Product Rules\" were configured.","categories":["Catalog/Product","GraphQL"],"components":["magento/module-target-rule"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-68/acsd-66072-graphql-fails-to-return-related-products-due-to-server-error-in-related-product-rules","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-68/acsd-66072-graphql-fails-to-return-related-products-due-to-server-error-in-related-product-rules.md","blobSha":"711a08f352409a7e20260b0fc43e265003b4a77f","description":"Related products are not returned via GraphQL on the Product Detail Page due to an internal server error when Related Products Rule is configured.","stepsToReproduce":"1. Create configurable products: * Product 1: config1 with option1 * Product 2: config2 with option2 1. Create and assign products to a category * Create a new category. * Assign both products (config1 and config2) to this category. 1. Navigate to Marketing > Promotions > Related Products Rule, then create a new rule with the following settings: * Priority: 1 * Applies To: Related Products * Result Limit: 10 * Products to Match: Attribute Set is Default * Products to Display: Product Category is the Same as Matched Product Categories 1. Run the following Magento CLI commands: bin/magento indexer:reindex bin/magento cache:clean 1. Send a POST request to ../graphql with the following payload: query getRelatedProductsForProductPage($urlKey: String!) { products(filter: { url_key: { eq: $urlKey } }) { items { id __typename uid url_key name sku related_products { id uid name sku stock_status url_key small_image { url __typename } thumbnail { url __typename } image { url __typename } price_range { maximum_price { regular_price { currency value __typename } __typename } minimum_price { discount { amount_off percent_off __typename } final_price { currency value __typename } regular_price { currency value __typename} __typename} __typename} __typename } } __typename } }","introducedInQpt":"1.1.68","createdFor":["2.4.6-p8"],"documentedRange":"2.4.6 - 2.4.8-p1","scheduledFixRelease":"2.4.9"},"files":[{"package":"magento/magento2-ee-base","constraint":">=2.4.6 <2.4.9","path":"patches/commerce/ACSD-66072_2.4.6-p8.patch","blobSha":"fde250c77f4ea754c3ebd7c6f75b6ea5a04fccd1","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/ACSD-66072_2.4.6-p8.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-target-rule/Model/ResourceModel/Index.php","change":"modified","package":"magento/module-target-rule"}],"packages":["magento/module-target-rule"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.8-p5","2.4.8-p4","2.4.8-p3","2.4.8-p2","2.4.8-p1","2.4.8","2.4.7-p10","2.4.7-p9","2.4.7-p8","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","2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.8-p5","2.4.8-p4","2.4.8-p3","2.4.8-p2","2.4.8-p1","2.4.8","2.4.7-p10","2.4.7-p9","2.4.7-p8","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","2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"mage-os":[]},"conditions":{"and":[{"type":"log","path":"var/log/exception.log","match":"Deprecated Functionality: explode(): Passing null to parameter #2 ($string) of type string is deprecated in *vendor/magento/module-target-rule/Model/ResourceModel/Index.php on line"}]},"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-66072 details"}