dotCMS / core

Headless/Hybrid Content Management System for Enterprises
http://dotcms.com
Other
803 stars 460 forks source link

Content Displacement Bug when Editing Template #27816

Open fmontes opened 4 months ago

fmontes commented 4 months ago

Problem Statement

When a user creates a template with the same container in multiple boxes, creates pages using that template, adds different content to those pages, and then updates the template, all the content in the pages gets displaced and appears incorrectly.

Steps to Reproduce

https://github.com/dotCMS/core/assets/751424/b78d8a5f-a6e7-4c76-80da-e7d8b34f3b80

### Acceptance Criteria
- [ ] When a template is edited, ALL pages using that template should maintain their content in the respective containers without displacement.

External Links

N/A

Assumptions & Initiation Needs

Quality Assurance Notes & Workarounds

john-thomas-dotcms commented 3 months ago

See also #27646

freddyDOTCMS commented 2 months ago

Note to IQA: Test also when Update a Layout inside a specific page, try all the cases:

Remember If a Page is using a Template and you change the Layout of the Page, the original Template just get updated if the page is the only one using this Template in other case a new Layout is created and the Template is not updated

dsilvam commented 2 months ago

Passed Internal QA: Tested the original case + the cases in the Note to IQA. All working as expected. The order of the content is kept.

josemejias11 commented 2 months ago

Approved: Tested on trunk_239b434, Docker, macOS 13.0, FF v124.0.2