Index: openacs-4/packages/xowiki/xowiki.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/xowiki.info,v diff -u -N -r1.180.2.70 -r1.180.2.71 --- openacs-4/packages/xowiki/xowiki.info 16 Sep 2021 09:49:46 -0000 1.180.2.70 +++ openacs-4/packages/xowiki/xowiki.info 17 Sep 2021 19:33:55 -0000 1.180.2.71 @@ -10,7 +10,7 @@ t xowiki - + Gustaf Neumann A xotcl-based enterprise wiki system with multiple object types 2021-09-15 @@ -55,7 +55,7 @@ BSD-Style 2 - + Index: openacs-4/packages/xowiki/tcl/form-field-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/form-field-procs.tcl,v diff -u -N -r1.284.2.171 -r1.284.2.172 --- openacs-4/packages/xowiki/tcl/form-field-procs.tcl 6 Sep 2021 16:46:07 -0000 1.284.2.171 +++ openacs-4/packages/xowiki/tcl/form-field-procs.tcl 17 Sep 2021 19:33:56 -0000 1.284.2.172 @@ -700,7 +700,7 @@ FormField ad_instproc dict_to_fc { -name - -type:required + -type dict } { @@ -712,10 +712,15 @@ allowed, etc. @param name optional form-field name - @param type required type of the form-field + @param type type of the form-field; if not specified, + take it from key "_type" of the dict @param dict dict to be converted. } { set result [expr {[info exists name] ? "$name:" : ""}] + if {![info exists type]} { + set type [dict get $dict _type] + dict unset dict _type + } set list $type foreach {key value} $dict { lappend list $key=[::xowiki::formfield::FormField fc_encode $value]