{assign var=TotalData value=0}
{assign var=TotalWData value=0}
{if $weight_field==""}
{else}
{/if}
|
| {$field} | {$STRING.INDEX.NumberOfBugs} |
{if $weight_field==""}
{else}
{$STRING.weighted} {$weight_field} |
{/if}
{foreach name=outer key=key item=item from=$stats}
| {$item.label} |
{$item.data|default:0} |
{math equation="(x + y)" x=$item.data y=$TotalData assign=TotalData}
{if $weight_field==""}
{else}
{$item.w_data|default:0}
{math equation="(x + y)" x=$item.w_data y=$TotalWData assign=TotalWData}
{/if}
|
{/foreach}
| {$STRING.totalbugs} |
{$TotalData} |
{if $weight_field==""}
{else}
{$TotalWData} |
{/if}
|