Index: openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl,v diff -u -r1.368.2.1 -r1.368.2.2 --- openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl 21 Feb 2019 16:12:58 -0000 1.368.2.1 +++ openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl 13 Mar 2019 22:56:17 -0000 1.368.2.2 @@ -221,9 +221,25 @@ # use the actual package_id. set fp_package_id [:form_parameter "package_id" [:query_parameter "package_id" ${:package_id}]] + # + # Handling publish_status. When the publish_status is provided via + # query parameter, this has the highest priority. Otherwise use + # the publish_status according to the production_mode. We control + # this here explicitly, since when "name" is provided via query + # variable, the default production/ready selection fails, and we + # have to set the publish_status manually (see issue #3380). + # if {$publish_status eq ""} { set publish_status [:query_parameter "publish_status" ""] } + if {$publish_status eq "" && [:exists_query_parameter name]} { + if {[${:package_id} get_parameter production_mode 0]} { + set publish_status "production" + } else { + set publish_status "ready" + } + ns_log notice "FINAL publish_status $publish_status" + } ::xo::Package require $fp_package_id set f [:create_form_page_instance \