Skip to content

Commit

Permalink
Fixed issue #16871: When displaying assessment messages, empty lines …
Browse files Browse the repository at this point in the history
…are being displayed (#1817)

Dev When the total assessment value is 0, there are no assessed entries in aAssessments.total, but just the boolean "show" variable.
  • Loading branch information
gabrieljenik committed Mar 26, 2021
1 parent d398f83 commit 309c4c2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -64,7 +64,7 @@

{% if aAssessments.total.show %}
{% for assessed in aAssessments.total %}
{% if ( aAssessments.total_score >= assessed.min and aAssessments.total_score <= assessed.max ) %}
{% if ( assessed is iterable and aAssessments.total_score >= assessed.min and aAssessments.total_score <= assessed.max ) %}
{# val ({PERC}): It displays the score of a question group, it don't exist for global … take the last one (must remove it for 4.X: show an error) #}
{% set assesmentReplacement = { PERC: val, TOTAL: aAssessments.total_score, ASSESSMENT_CURRENT_TOTAL: aAssessments.total_score } %}
<table class='{{ aSurveyInfo.class.assessmentstablet }} table' {{ aSurveyInfo.attr.assessmentstablet }} >
Expand Down

0 comments on commit 309c4c2

Please sign in to comment.