Skip to content

Commit a7671d5

Browse files
committed
Merge branch 'fix/categories-duplicates' into staging
2 parents 4b40b94 + 6b665d9 commit a7671d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/admin/category.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
permit_params :category_type, translations_attributes: [:id, :locale, :name, :_destroy]
1818

1919
sidebar :subcategories, only: :show do
20-
sidebar = Subcategory.joins(:translations).where(category: resource).collect do |s|
20+
sidebar = Subcategory.with_translations(I18n.locale).where(category: resource).collect do |s|
2121
auto_link(s, s.name.camelize)
2222
end
2323
safe_join(sidebar, content_tag("br"))

0 commit comments

Comments
 (0)