Add saving TranslationUnitsMap always
Need to figure out how to manage that changed status gets checked properly.
This commit is contained in:
@ -23,7 +23,8 @@ defmodule Outlook.Translations.Translation do
|
|||||||
@doc false
|
@doc false
|
||||||
def changeset(translation, attrs) do
|
def changeset(translation, attrs) do
|
||||||
translation
|
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])
|
|> validate_required([:lang, :title, :teaser, :content, :date, :public, :unauthorized])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user