Index: openacs-4/packages/acs-templating/tcl/tag-init.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/tag-init.tcl,v
diff -u -r1.18 -r1.19
--- openacs-4/packages/acs-templating/tcl/tag-init.tcl	27 Feb 2004 22:36:43 -0000	1.18
+++ openacs-4/packages/acs-templating/tcl/tag-init.tcl	22 Mar 2004 18:15:07 -0000	1.19
@@ -179,9 +179,9 @@
   
   template::adp_append_code "
 
-  for { set __ats_i 0 } { \$__ats_i < \${$name:rowcount} } { incr __ats_i } {
-    set $name:item \[lindex \${$name} \$__ats_i\]
-    set $name:rownum \[expr \$__ats_i + 1\]
+  for { set __ats_${name}_i 0 } { \$__ats_${name}_i < \${$name:rowcount} } { incr __ats_${name}_i } {
+    set $name:item \[lindex \${$name} \$__ats_${name}_i\]
+    set $name:rownum \[expr \$__ats_${name}_i + 1\]
   "
   template::adp_compile_chunk $chunk