Symptom 1: Changes to choices are not shown in editor field
Steps to reproduce:
- Create a dimension with choices
- Create a dimension field that uses it
- Change choices in said dimension field
- Observe dimension field in editor
- Open form for responses
- Observe dimension field in form fill view
Expected results: Up-to-date choices
Actual results: Change done in 3 not shown in editor (4) but form fill view is up to date (6)
Symptom 2: Dimension field choices are shown in the language of the time of field creation
Steps to reproduce:
- Switch to English
- Create a dimension with choices in English only
- Create a language version in Finnish
- Create a dimension field using said dimension
- Observe English choices shown (by design)
- Add Finnish translations to choice titles
Ibid.
Speculation
When a new form field is saved that is of the dimension field types, its choices are not stripped away. This choices is just for show; ie. to reassure the user the field is working as is. It is created by injectChoices in the frontend.
The editor then shows these choices persisted at the time of creation.
The editor works on un-enriched (depleted?) fields. Enrichment, among other things, populates dimension choices, overriding the stale choices.
The form fill view, on the other hand, works on enriched fields. It will therefore get the always current choices.
Symptom 1: Changes to choices are not shown in editor field
Steps to reproduce:
Expected results: Up-to-date choices
Actual results: Change done in 3 not shown in editor (4) but form fill view is up to date (6)
Symptom 2: Dimension field choices are shown in the language of the time of field creation
Steps to reproduce:
Ibid.
Speculation
When a new form field is saved that is of the dimension field types, its
choicesare not stripped away. Thischoicesis just for show; ie. to reassure the user the field is working as is. It is created byinjectChoicesin the frontend.The editor then shows these
choicespersisted at the time of creation.The editor works on un-enriched (depleted?) fields. Enrichment, among other things, populates dimension choices, overriding the stale
choices.The form fill view, on the other hand, works on enriched fields. It will therefore get the always current choices.