Index: openacs-4/packages/ams/www/attribute.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ams/www/attribute.tcl,v diff -u -r1.12 -r1.13 --- openacs-4/packages/ams/www/attribute.tcl 26 Apr 2006 08:40:20 -0000 1.12 +++ openacs-4/packages/ams/www/attribute.tcl 27 Apr 2006 06:11:40 -0000 1.13 @@ -139,7 +139,10 @@ set sort_order $sort_count set sort_key $sort_key_count -template::multirow append options {new1} {} 1 $sort_count $sort_key -template::multirow append options {new2} {} 1 [incr sort_count 10] [incr sort_key 1] -template::multirow append options {new3} {} 1 [incr sort_count 10] [incr sort_key 1] +if { [template::multirow size options] > 0 } { + # its an option widget and we need to allow for new options + template::multirow append options {new1} {} 1 $sort_count $sort_key + template::multirow append options {new2} {} 1 [incr sort_count 10] [incr sort_key 1] + template::multirow append options {new3} {} 1 [incr sort_count 10] [incr sort_key 1] +} ad_return_template