Translated taxonomy is saved over the default language
| Project: | Localizer |
| Version: | 5.x-3.13 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | needs review |
Hi.
When saving the translation of a taxonomy, it overwrites the values of the default language instead of using the current language.
Reproducable all the time:
- Create a term in the default language.
- Translate the term with the "Localizer string translation"
- View the list of terms
- Switch to another language (you should see the translated values)
- Edit a term and save.
- New values are saved over the default language instead of the current language.
Here's the bug fix:
File: localizer/modules/localizertaxonomy.module
Line 26
<<<<<
'language' => localizer_get_default_language(),
>>>>
'language' => localizer_get_language(),
Of course, testing and validation should be done. So far, my tests are good.
