• Resolved wowa1

    (@wowa1)


    Thank YOu for the famous plugin!
    Since version 2.4.1 in the nutritional information all fields are shown even if there is only nutritional value but no data in the other fields (fat, protein, carbo).
    Please can You fix it?

    Thank You

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Kemory Grubb

    (@w33zy)

    Hello @wowa1

    Can you be a bit more specific as to what data is showing when it shouldn’t and where this data is being shown (frontend, backend or recipe schema)? I did make some changes to that feature so it is possible I may have introduced a bug.

    Thread Starter wowa1

    (@wowa1)

    Hello @w33zy

    The problem occurs in the frontend.

    For example in the backend i have only values for Calories (other nutrition fields void)
    Nutrition
    Calories: Joules: Per:
    533 kcal 2228 kJ portion
    Protein: Fat: Carbs:

    So I expect in the frontend only information about calories as it is in version 2.3.0. Here the output in the frontend is:
    Nutritional information
    per portion
    Calories: 533 kcal / 2228 kJ

    But version 2.4.1 gives:
    Nutritional information
    per portion
    Calories: 533 kcal / 2228 kJ Fat: g Protein: g Carbs: g`

    In this case void fields should not be shown.

    Thank You

    Plugin Author Kemory Grubb

    (@w33zy)

    Thanks I now see this this issue. I now need to figure out a better way to differentiate between an empty field and when a user may enter a “0” to indicate a zero value for a nutrition field.

    I will fix this in a patch I will release later today.

    Thread Starter wowa1

    (@wowa1)

    Thank You very much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘bug in version 2.4.1’ is closed to new replies.