hpolthof / laravel-translations-db

Laravel Translations from Database
https://packagist.org/packages/hpolthof/laravel-translations-db
GNU General Public License v2.0
52 stars 37 forks source link

Translations go missing when leaving empty field #19

Open bernype opened 7 years ago

bernype commented 7 years ago

when clicking into a textfield which was already translated and you do not want to change it and you leave it, the translation gets deleted because it always updates the field with the value in the textbox. so if the textbox is empty it updates the translation with NULL

hpolthof commented 7 years ago

Could you give an example? I don't understand your issue.

bernype commented 7 years ago

When I make a translation, both languages are set to EN f.e., after filling out the translated the text, it is stored in db for this certain field. I reload the page, the one text is already translated, I translate another one, and by mistake I set the focus into the field that was already translated, the second text gets updated in the db but when I click on some other content, the first one gets deleted and set to NULL in the db.