From 4f04019dee2b05c0a9156deb5c89b91dc024bc38 Mon Sep 17 00:00:00 2001 From: Thelonius Kort Date: Mon, 26 Dec 2022 19:05:47 +0100 Subject: [PATCH] Add saving TranslationUnitsMap always Need to figure out how to manage that changed status gets checked properly. --- lib/outlook/translations/translation.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/outlook/translations/translation.ex b/lib/outlook/translations/translation.ex index 97c4432..2cd972c 100644 --- a/lib/outlook/translations/translation.ex +++ b/lib/outlook/translations/translation.ex @@ -23,7 +23,8 @@ defmodule Outlook.Translations.Translation do @doc false def changeset(translation, attrs) do translation - |> cast(attrs, [:lang, :title, :teaser, :content, :date, :public, :unauthorized]) + |> cast(attrs, [:lang, :title, :teaser, :date, :public, :unauthorized]) + |> cast(attrs, [:content], force_changes: true) |> validate_required([:lang, :title, :teaser, :content, :date, :public, :unauthorized]) end end