mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-07 22:46:06 +00:00
12294 - Fix Wrong Tax Category Display
- Only display the tax_category name if the tax_category_id is present - tax_category is overriden in the variant model - if tax category is not present, then return the default tax category
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
%td.align-left
|
||||
.content= variant.primary_taxon&.name
|
||||
%td.align-left
|
||||
.content= variant.tax_category&.name || "None" # TODO: convert to dropdown, else translate hardcoded string.
|
||||
.content= (variant.tax_category_id ? variant.tax_category&.name : t('.none_tax_category')) # TODO: convert to dropdown
|
||||
%td.align-left
|
||||
-# empty
|
||||
%td.align-right
|
||||
|
||||
Reference in New Issue
Block a user