Skip to content

Commit

Permalink
Display note for Nutri-Score of teas and herbal teas, fixes #5644
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanegigandet authored and Olivier Cervello committed Sep 13, 2021
1 parent d5c5982 commit 5f486f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ProductOpener/Display.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8959,7 +8959,7 @@ sub display_nutrient_levels($) {
if ((has_tag($product_ref, "categories", "en:tea-bags"))
or (has_tag($product_ref, "categories", "en:herbal-teas-in-tea-bags"))
# many tea bags are only under "en:teas", but there are also many tea beverages under "en:teas"
or ((has_tag($product_ref, "categories", "en:tea-bags")) and not (has_tag($product_ref, "categories", "en:tea-based-beverages")))
or ((has_tag($product_ref, "categories", "en:teas")) and not (has_tag($product_ref, "categories", "en:tea-based-beverages")))
) {
$warning .= "<p>" . lang("nutrition_grade_fr_tea_bags_note") . "</p>";
}
Expand Down

0 comments on commit 5f486f9

Please sign in to comment.