From cf3a105a0fabbe74d5c6cee27df176b9e0f1c746 Mon Sep 17 00:00:00 2001 From: Thelonius Kort Date: Thu, 19 Jan 2023 22:24:53 +0100 Subject: [PATCH] Add public_content to casts for translation Overlooked - should have been in fa7671f972 --- lib/outlook/translations/translation.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/outlook/translations/translation.ex b/lib/outlook/translations/translation.ex index 6a33ef3..2b35889 100644 --- a/lib/outlook/translations/translation.ex +++ b/lib/outlook/translations/translation.ex @@ -24,7 +24,7 @@ defmodule Outlook.Translations.Translation do @doc false def changeset(translation, attrs) do translation - |> cast(attrs, [:language, :title, :teaser, :date, :public, :unauthorized, :article_id]) + |> cast(attrs, [:language, :title, :teaser, :date, :public, :unauthorized, :article_id, :public_content]) |> cast(attrs, [:content]) |> validate_required([:language, :title, :content, :date, :public, :unauthorized, :article_id]) |> unique_constraint([:language, :article_id],