From 5f50347e29b1fdaa3ecdf51e6e262c2e4ab9e544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20Norl=C3=A9n?= Date: Thu, 10 Sep 2020 10:40:44 +0200 Subject: [PATCH] unset-render_size-on-layout-default-selection If no size is selected, db should be unset to give layout/settings size priority again --- app/views/alchemy/admin/essence_pictures/edit.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/alchemy/admin/essence_pictures/edit.html.erb b/app/views/alchemy/admin/essence_pictures/edit.html.erb index c37cde6c5e..85254e60da 100644 --- a/app/views/alchemy/admin/essence_pictures/edit.html.erb +++ b/app/views/alchemy/admin/essence_pictures/edit.html.erb @@ -7,7 +7,7 @@ <%- if @content.settings[:sizes].present? -%> <%= f.input :render_size, collection: [ - [Alchemy.t('Layout default'), @content.settings[:size]] + [Alchemy.t('Layout default'), ""] ] + @content.settings[:sizes].to_a, include_blank: false, input_html: {class: 'alchemy_selectbox'} %>