core icon indicating copy to clipboard operation
core copied to clipboard

[DEFECT] Deleted Contentlet Reappears in UVE When Style Editor Form Remains Open

Open ihoffmann-dot opened this issue 10 months ago • 2 comments

Problem Statement

The new Style Editor feature currently has an issue where Contentlets deleted from the UVE reappear in the view under a specific scenario. This occurs when a Contentlet that was being edited via the Style Editor is deleted. If, after deletion, an attempt is made to continue modifying its styles from the Style Editor panel, the Contentlet reappears in the UVE.

While the Contentlet reappears visually, it is not actually saved; the problem appears to be a rendering issue. The reappearing Contentlet disappears if the Page is published or the browser is refreshed.

Steps to Reproduce

  1. Add a Contentlet to a Container on a Page.
  2. Modify the Contentlet's styles using the Style Editor.
  3. Delete the Contentlet from the UVE.
  4. While the Style Editor form is still open, attempt to modify the styles of the previously deleted Contentlet using that form.
  5. Expected result: The Contentlet should remain deleted and the Style Editor form should close or indicate the item is no longer available.
  6. Actual result: The Contentlet reappears in the UVE.

https://github.com/user-attachments/assets/52651b40-34ed-44e3-986e-59c0c9d1ce86

Acceptance Criteria

To resolve this issue, the following objective criteria must be met:

  • [ ] It must be possible to edit the styleProperties of any Contentlet while maintaining the current expected behavior.
  • [ ] When a Contentlet with an open Style Editor properties form is deleted, this form must automatically close to prevent further modification attempts on a non-existent item.
  • [ ] Contentlets that have been deleted must not reappear in the UVE after being deleted, regardless of whether their Style Editor form was open.

dotCMS Version

main

Severity

Medium - Some functionality impacted

Links

NA

ihoffmann-dot avatar Jan 28 '26 15:01 ihoffmann-dot

PRs linked to this issue

github-actions[bot] avatar Jan 29 '26 18:01 github-actions[bot]

Passed QA

Now the form resets on content deleting, preventing the content to appear again on the UVE

https://github.com/user-attachments/assets/7c39fde6-98f8-4b84-bb93-9de72bf1aeaf

zJaaal avatar Jan 30 '26 19:01 zJaaal