Index: openacs-4/packages/ams/www/attribute.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ams/www/attribute.adp,v diff -u -N -r1.8 -r1.9 --- openacs-4/packages/ams/www/attribute.adp 22 Mar 2006 10:00:31 -0000 1.8 +++ openacs-4/packages/ams/www/attribute.adp 27 Apr 2006 06:11:40 -0000 1.9 @@ -9,6 +9,6 @@

#ams.Help_text# @attribute_info.help_text@Edit

#ams.Widget# @attribute_info.widget@

- + - + Index: openacs-4/packages/ams/www/attribute.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ams/www/attribute.tcl,v diff -u -N -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