Add saving TranslationUnitsMap always

Need to figure out how to manage that changed status gets checked properly.
This commit is contained in:
Thelonius Kort
2022-12-26 19:05:47 +01:00
parent afb25a328c
commit 4f04019dee

View File

@ -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