getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.23k stars 166 forks source link

Writer field overwritten with cached values from nested children #6506

Open FynnZW opened 1 week ago

FynnZW commented 1 week ago

Description

When I edit a writer field in a nested child page and go back to the parent, the writer field is overwritten with the value from the child page (see attached video).

I suspect a vue caching issue? Interestingly, it seems to only happen when I save with keyboard shortcut (cmd + s).

Screenshots

https://github.com/getkirby/kirby/assets/14918334/2a15d69a-7910-489c-8927-f5ee45370627

To reproduce

  1. Create a new kirby installation
  2. Create parent page with writer field named text
  3. Create child page with writer field named text
  4. Edit the child page's writer field, save with CMD + S, return to parent
  5. See parent content was overwritten

Your setup

Kirby Version
4.3.0 (also tested with 4.2.0 and 4.1.0.) Tested with a fresh kirby plainkit and no plugins.

Your system (please complete the following information)

FynnZW commented 1 week ago

Just noticed another, possibly related bug: Renaming a page slug causes the writer field to become blank. Saving then would lead to content loss.