Open
Description
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:
- Enable translated media form fields by setting
twill.media_library.translated_form_fields
totrue
- Add a non-translated media form field to a module form by setting its
translated
parameter tofalse
- 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.
Metadata
Metadata
Assignees
Type
Projects
Status
In progress