Skip to content

Commit

Permalink
Unset picture render_size on layout default selection (#1935)
Browse files Browse the repository at this point in the history
If no size is selected, database value should be unset to give layout/settings size priority again
  • Loading branch information
mickenorlen authored Sep 30, 2020
1 parent 259edb8 commit e2223f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/alchemy/admin/essence_pictures/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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'} %>
Expand Down

0 comments on commit e2223f5

Please sign in to comment.