Index: openacs-4/packages/acs-tcl/tcl/form-processing-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/form-processing-procs.tcl,v diff -u -N -r1.87.2.5 -r1.87.2.6 --- openacs-4/packages/acs-tcl/tcl/form-processing-procs.tcl 5 Jul 2019 10:00:54 -0000 1.87.2.5 +++ openacs-4/packages/acs-tcl/tcl/form-processing-procs.tcl 27 Aug 2019 09:56:17 -0000 1.87.2.6 @@ -806,12 +806,13 @@ } } - # Antonio Pisano: export property will eventually end up into - # template::form::render, where export_vars will take care of - # creating the required hidden form fields according to - # specification. + # Use export_vars to serialize variables from -export flag as + # hidden form fields. We need to do it now rather than later in + # the rendering, as only now the uplevel variables come from is + # well known. if { [info exists export] } { - template::form::set_properties $form_name export $export + template::form::set_properties $form_name exported_vars \ + [uplevel [list export_vars -form $export]] } # We need to track these for submission time and for error checking