Index: openacs-4/packages/xowf/tcl/test-item-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowf/tcl/test-item-procs.tcl,v diff -u -r1.7.2.99 -r1.7.2.100 --- openacs-4/packages/xowf/tcl/test-item-procs.tcl 13 Jan 2021 13:39:49 -0000 1.7.2.99 +++ openacs-4/packages/xowf/tcl/test-item-procs.tcl 13 Jan 2021 18:00:46 -0000 1.7.2.100 @@ -51,12 +51,14 @@ if {[:exists_named_sub_component attachments]} { set attachments_ff [:get_named_sub_component attachments] set attachments_count [$attachments_ff count_values [$attachments_ff value]] + for {set i 1} {$i <= $attachments_count} {incr i} { - set attachment_label [dict get [:get_named_sub_component_value attachments $i] name] + set attachment_label [lindex [dict get [:get_named_sub_component_value -from_repeat attachments $i] name] 0] + set encoded_label [ns_urlencode $attachment_label] append attachments_links \ - "
" + { } if {$attachments_count > 0} { append attachments_html "