Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #6201 [ChoiceField] Bugfix: Enum translation for Grid (psihius)
This PR was squashed before being merged into the 4.x branch. Discussion ---------- [ChoiceField] Bugfix: Enum translation for Grid The translation array is based on the enum's `name` field, so when choosing translation for the grid, it should also select `name` instead of `value` as the selected value. This is important when Enum's name and value do not match, like in integer-based enum's or when the case name is not the same as it's value. Also replaced the array_merge with a foreach that adds data to the array instead of fully rebuilding a new copy of the array with new data. Commits ------- 178ecc7 [ChoiceField] Bugfix: Enum translation for Grid
- Loading branch information