You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a site with translated media fields, using a non-translated media field will display the field as empty in the edit form even though it is saved correctly in the database and holds data.
Steps to reproduce:
Enable translated media form fields by setting twill.media_library.translated_form_fields to true
Add a non-translated media form field to a module form by setting its translated parameter to false
Open the edit form for a single entry of that module
Attach an image from the media library to the non-translated media field
Save changes
Reload browser window
Expected behavior:
The media relation is saved in the database and displayed in the edit form on reload.
Actual behavior:
The media relation is saved correctly but the media form field is empty on reload.
Notes:
I think the translated_form_fields shouldn't be global. Some fields require it, some don't, so there should be a way of overriding the global setting for single fields. Twill's data structure is set up well for handling this. It's probably a question of how to detect the data format.
The text was updated successfully, but these errors were encountered:
Same issue here... Activating translated_form_fields on an existing project breaks the already defined media fields
It is not a minor issue. If anyone have an existing project and wants to add a specific translatable media field in a specific page controller, setting media translation globally just breaks all media fields in the project. Translations behavior in the media field should be the same as in any other field. Is there any solution for this?
Description of the issue:
On a site with translated media fields, using a non-translated media field will display the field as empty in the edit form even though it is saved correctly in the database and holds data.
Steps to reproduce:
twill.media_library.translated_form_fields
totrue
translated
parameter tofalse
Expected behavior:
The media relation is saved in the database and displayed in the edit form on reload.
Actual behavior:
The media relation is saved correctly but the media form field is empty on reload.
Notes:
I think the
translated_form_fields
shouldn't be global. Some fields require it, some don't, so there should be a way of overriding the global setting for single fields. Twill's data structure is set up well for handling this. It's probably a question of how to detect the data format.The text was updated successfully, but these errors were encountered: