Index: openacs-4/packages/acs-templating/tcl/list-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/list-procs.tcl,v diff -u -N -r1.51 -r1.52 --- openacs-4/packages/acs-templating/tcl/list-procs.tcl 8 Sep 2008 16:58:48 -0000 1.51 +++ openacs-4/packages/acs-templating/tcl/list-procs.tcl 8 Sep 2008 17:10:41 -0000 1.52 @@ -1228,9 +1228,9 @@ if { [exists_and_not_null __element_properties(aggregate)] } { # Update totals incr __agg_counter($__element_properties(name)) - if { $__element_properties(aggregate) ne "count" } { + if {$__element_properties(aggregate) eq "sum" } { set __agg_sum($__element_properties(name)) \ - [expr {$__agg_sum($__element_properties(name)) + [set $__element_properties(name)]}] + [expr {$__agg_sum($__element_properties(name)) + ([set $__element_properties(name)] ne "" ? [set $__element_properties(name)] : 0)} ] } # Check if the value of the groupby column has changed