Index: openacs-4/packages/acs-templating/tcl/element-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/element-procs.tcl,v diff -u -r1.32.2.8 -r1.32.2.9 --- openacs-4/packages/acs-templating/tcl/element-procs.tcl 13 Oct 2013 12:27:12 -0000 1.32.2.8 +++ openacs-4/packages/acs-templating/tcl/element-procs.tcl 25 Nov 2013 09:35:59 -0000 1.32.2.9 @@ -139,7 +139,7 @@ @see template::widget @see template::data::validate @see template::form::create - @see template::form::section + @see template::form::section } { set level [template::adp_level] @@ -172,11 +172,12 @@ # set the form section set opts(section) $form_properties(section) - if { $opts(section) ne "" } { - set opts(sec_fieldset) $form_properties(sec_fieldset) - set opts(sec_legend) $form_properties(sec_legend) - set opts(sec_legendtext) $form_properties(sec_legendtext) - } + if { $opts(section) ne "" } { + array set opts {sec_fieldset "" sec_legend "" sec_legendtext ""} + if {[info exists form_properties(sec_fieldset)]} {set opts(sec_fieldset) $form_properties(sec_fieldset)} + if {[info exists form_properties(sec_legend)]} {set opts(sec_legend) $form_properties(sec_legend)} + if {[info exists form_properties(sec_legendtext)]} {set opts(sec_legendtext) $form_properties(sec_legendtext)} + } template::util::get_opts $args Index: openacs-4/packages/acs-templating/www/doc/demo/pay.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/demo/pay.tcl,v diff -u -r1.2.26.1 -r1.2.26.2 --- openacs-4/packages/acs-templating/www/doc/demo/pay.tcl 6 Oct 2013 13:20:35 -0000 1.2.26.1 +++ openacs-4/packages/acs-templating/www/doc/demo/pay.tcl 25 Nov 2013 09:35:59 -0000 1.2.26.2 @@ -1,4 +1,4 @@ -form create pay_bill -section required -elements { +form create pay_bill -section required -sec_legendtext Payment -elements { payee -label "Payee" -datatype text -widget text amount -label "Amount" -datatype integer -widget text }