From 28437c7392d620c58b37371dc6932555b82858d9 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 1 Feb 2017 23:09:48 +0100 Subject: [PATCH] Fixed issue #659 - Can't update translations via translation table in admin interface. --- app/assets/javascripts/app/lib/app_post/i18n.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/assets/javascripts/app/lib/app_post/i18n.coffee b/app/assets/javascripts/app/lib/app_post/i18n.coffee index 82efaaae9..1b138bf4e 100644 --- a/app/assets/javascripts/app/lib/app_post/i18n.coffee +++ b/app/assets/javascripts/app/lib/app_post/i18n.coffee @@ -282,9 +282,12 @@ class _i18nSingleton extends Spine.Module notTranslated removeNotTranslated: (locale, key) => + return if !@_notTranslated[locale] delete @_notTranslated[locale][key] setNotTranslated: (locale, key) => + if !@_notTranslated[locale] + @_notTranslated[locale] = {} @_notTranslated[locale][key] = true date: (time, offset) =>