Skip to content

Commit

Permalink
Fix: Grand total correction
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarcet committed Oct 7, 2024
1 parent 7faa9ba commit 3697d7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/core/tpl/list_print_total.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
while ($i < $totalarray['nbfield']) {
$i++;
if (!empty($totalarray['pos'][$i])) {
printTotalValCell($totalarray['type'][$i], $sumsarray[$totalarray['pos'][$i]]);
$fieldname = preg_replace('/[^a-z0-9]/', '', $totalarray['pos'][$i]);
printTotalValCell($totalarray['type'][$i], $sumsarray[$fieldname]);
} else {
if ($i == 1) {
print '<td>';
Expand Down

0 comments on commit 3697d7f

Please sign in to comment.