Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Translations: fix vanishing translation
Since 1.1.0 translations are saved per section. Thirtybees first clears all translation from given section, and then import new translations submitted in form. The clearing mechanism works on prefix bases. If other section starts with the same prefix, its entries would be removed as well. For example, saving `authentication` section would remove all translations from sections `authentication-login` or `authentication-create`. The fix is simple -- don't clear translations at all. Remove only entries if the input post value contain empty string. Closes thirtybees#976
- Loading branch information