-
-
Notifications
You must be signed in to change notification settings - Fork 181
object
set to translate: false
should be disabled and return main language values#7570Description
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 totranslate: 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
- Create a field type
object
with at least one text field set totranslate: false
- Set a text in the main language.
- Try to set a text in another language. The field will not be disabled.
- 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.