winter icon indicating copy to clipboard operation
winter copied to clipboard

CMS Layout editor: cannot remove components.

Open mjauvin opened this issue 3 years ago • 1 comments

Winter CMS Build

1.2

PHP Version

8.1

Database engine

MySQL/MariaDB

Plugins installed

No response

Issue description

When deleting a component from a layout within the CMS editor, the component persist after the layout is saved.

Steps to replicate

  • open a layout in the CMS editor.
  • add a component then save and close layout.
  • reopen layout, delete component, save and close layout.
  • reopen layout: deleted component is still present.

Workaround

No response

mjauvin avatar Sep 13 '22 23:09 mjauvin

Comment in original thread:

I was able to replicate this. It seems that with the layouts, changing only the components in a layout does not make the layout "dirty", and Halycon models on update won't trigger a save unless there is a dirty attribute. It's why it initially worked for me - the content in the code editor had changed ever so slightly (I think it removed a newline), which meant that the code attribute was dirty and thus it saved.

bennothommo avatar Sep 13 '22 23:09 bennothommo

@bennothommo this is still not resolved

mjauvin avatar Apr 20 '23 17:04 mjauvin

Tested this again with latest develop branch and could not reproduce.

mjauvin avatar May 17 '23 20:05 mjauvin