Skip to content

Commit 2b0b699

Browse files
authored
Merge pull request #3550 from AlchemyCMS/fix-picture-css-class-select
fix(PictureEditor): Use local klass to translate
2 parents 858b48f + 4feb38b commit 2b0b699

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/views/alchemy/admin/ingredients/_picture_fields.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
then css_classes
1616
else
1717
css_classes.map do |klass|
18-
[Alchemy.t(klass, scope: "picture_ingredients.css_classes", default: ingredient.css_class&.camelcase), klass]
18+
[Alchemy.t(klass, scope: "picture_ingredients.css_classes", default: klass&.humanize), klass]
1919
end
2020
end %>
2121
<%= f.input :css_class, collection: css_classes_collection, include_blank: false %>

app/views/alchemy/ingredients/shared/_picture_css_class.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
<%= render_icon "pencil-ruler-2", style: "line", size: "1x" %>
33
<%= Alchemy.t(css_class,
44
scope: "picture_ingredients.css_classes",
5-
default: css_class.camelcase) %>
5+
default: css_class.humanize) %>
66
</div>

0 commit comments

Comments
 (0)