From ca5bf094c6c8cd2ec2fe7539f7de773b4bc4d8b8 Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Thu, 16 May 2024 11:43:00 +0200 Subject: [PATCH] fix language scope in picture description field We only allow to select from published languages, so we should only display the select if there are at least two published languages. --- .../alchemy/admin/pictures/_picture_description_field.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/alchemy/admin/pictures/_picture_description_field.html.erb b/app/views/alchemy/admin/pictures/_picture_description_field.html.erb index eefebf52bb..841fbbd1ae 100644 --- a/app/views/alchemy/admin/pictures/_picture_description_field.html.erb +++ b/app/views/alchemy/admin/pictures/_picture_description_field.html.erb @@ -1,5 +1,5 @@
- <% if Alchemy::Language.many? %> + <% if Alchemy::Language.published.many? %>