Skip to content

Fields in type object set to translate: false should be disabled and return main language values #7570

@renestalder

Description

@renestalder

Description

When a field of type object contains fields that are set to translate: false, those fields can still be edited in the panel frontend, but instantly reset after saving.

At the same time, those fields yield empty results in their translations. For example, having inserted a text to a non-translatable field inside an object in its main language, getting the field content in the template in a secondary language will behave like it does not have content.

Expected behaviour

  • If a field inside object is set to translate: false it should be disabled from content insertion in the panel.
  • Any access to those fields via the template API should return the non-translatable original from the main language.

Screenshots

To reproduce

  1. Create a field type object with at least one text field set to translate: false
  2. Set a text in the main language.
  3. Try to set a text in another language. The field will not be disabled.
  4. Try rendering this field value in a template. It will yield a text in the main language but will not return one in the secondary language.

Your setup

Kirby Version
v5.0.4

Console output

Your system (please complete the following information)

  • Device: MacBook Pro
  • OS: macOS 26 Beta
  • Browser: Safari
  • Version: 26.0

Additional context

It's possible the bug was introduced in 5.0.0. A website where this issue occurred was recently updated. We then noticed, that in the English version of the website (secondary language), some content was gone after somebody edited the website.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions