{"data":{"id":"MDVA-33606","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where users get a “Unique constraint violation” error when saving a CMS page assigned to a hierarchy.","categories":["Content"],"components":["magento/module-versions-cms"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-3/mdva-33606-users-get-error-when-saving-cms-page-assigned-to-hierarchy","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-3/mdva-33606-users-get-error-when-saving-cms-page-assigned-to-hierarchy.md","blobSha":"c0f479ec78dab994b5f98ce3aeeea7980be5db64","description":"When trying to save a CMS page assigned to hierarchy tree, users get the following error message: Unique constraint violation found.","stepsToReproduce":"1. Create a new CMS page. Set the scope to All Store Views. This is your CMS Page 1. 1. Create a new store view. This is your Store View 2. 1. Go to Content > Hierarchy > Add the CMS Page 1 to hierarchy tree. 1. Change the scope to Store View 2. * Uncheck \"Use the parent node hierarchy\". * Add CMS Page 1 to this scope and save it. 1. Now change the scope to Default Store View. * Uncheck \"Use the parent node hierarchy\". * Add CMS Page 1 to this scope and save it. 1. Go to Content > Pages > Add New Page. * Title the page as Page 2. * In the Page in Websites section, assign to All Store Views and both store views (Default Store View and Store View 2) and click Save Page. 1. In the CMS edit page, open the Hierarchy tab. * Assign Page 2 to Store View 2 node, Default node, and All Websites node.","introducedInQpt":"1.1.3","createdFor":["2.4.1"],"documentedRange":"2.4.1-2.4.2-p2","scheduledFixRelease":null},"files":[{"package":"magento/magento2-ee-base","constraint":">=2.4.1 <=2.4.2-p2","path":"patches/commerce/MDVA-33606_2.4.1.patch","blobSha":"8741ea201ccbde003711a74aa1bb79ab20f9fd6c","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/MDVA-33606_2.4.1.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-versions-cms/Block/Adminhtml/Cms/Page/Edit/Tab/Hierarchy.php","change":"modified","package":"magento/module-versions-cms"},{"path":"vendor/magento/module-versions-cms/Observer/Backend/CmsPageSaveAfterObserver.php","change":"modified","package":"magento/module-versions-cms"}],"packages":["magento/module-versions-cms"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.2-p2","2.4.2-p1","2.4.2","2.4.1-p1","2.4.1"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.2-p2","2.4.2-p1","2.4.2","2.4.1-p1","2.4.1"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch MDVA-33606 details"}