Skip to content

Commit

Permalink
Use Spree::Variant#track_inventory translation
Browse files Browse the repository at this point in the history
We actually delegate the value to the master variant
and most stores will already have the translation present.

(cherry picked from commit 32e41bf)
  • Loading branch information
tvdeyen committed Apr 27, 2023
1 parent 0eaa0a6 commit 05ec777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/views/spree/admin/products/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
<%= f.field_container :track_inventory do %>
<label>
<%= f.check_box :track_inventory %>
<%= Spree::Product.human_attribute_name(:track_inventory) %>
<%= Spree::Variant.human_attribute_name(:track_inventory) %>
</label>
<% end %>
</div>
Expand Down

0 comments on commit 05ec777

Please sign in to comment.