Closed frankrausch closed 1 week ago
I cannot reproduce your problem so far, for me the title always stays field.blocks.listblock1.name
https://github.com/getkirby/kirby/assets/3788865/59f72472-6183-4952-830d-4601384ed959
Sorry for the long wait! Finally found some time to do a deep-dive into this. I could not reproduce it in a clean new project at first either.
But when I copied my content file from the actual site, I could reproduce it, even after I removed all of my own content.
Here is a screencast and a minimal reproduction. The zip file contains the content and site folders, derived from a current plainkit. The template is in about.yml
and the blocks are in the block-factory
plugin.
https://github.com/getkirby/kirby/assets/6783714/0b5f422e-1767-42be-b680-c7de0d996c23
@frankrausch Finally have a hunch. Could you test if the problem disappears if you remove the date fields? I think it could be the same as https://github.com/getkirby/kirby/issues/6390
@distantnative Yes! Removing the date field seems to fix this bug.
I commented out the date fields in my blocks blueprints and now it behaves correctly (doesn’t mess up the parent when editing a child and pressing Command + S).
Will be fixed in v4.4. then :)
Thanks!
Description
I have a
blocks
template that contains astructure
.When I edit an item from the
structure
in Kirby 4’s panel and press the keyboard shortcut ⌘S, thestructure
item’stitle
is wrongly saved as theblock
’stitle
(= overwriting the title field of its parent). This doesn’t happen if I use the save icon in the toolbar.Expected behavior
Screenshots
To reproduce
blocks
field that contains astructure
where both the block and the structure have a field calledtitle
.structure
item and press ⌘S or Ctrl + S while editing.structure
item’s title overwrites the block’s title.Here is a shortened version of the block template:
Your setup
Kirby Version
4.0.2
Console output
Your system (please complete the following information)
Additional context
Thanks!