Index: openacs-4/packages/xowiki/tcl/xowiki-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-procs.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 27 Jan 2006 17:34:59 -0000 1.7 +++ openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 28 Jan 2006 01:31:25 -0000 1.8 @@ -219,7 +219,12 @@ WikiForm instproc new_data {} { my handle_enhanced_text_from_form set item_id [next] - my update_references + if {![my istype PageInstanceForm]} { + ### danger: update references does an ad_eval, which breaks the [template::adp_level] + ### ad_form! don't do it here. + my update_references + } + return $item_id } @@ -247,6 +252,7 @@ {label "Page Template"} {options \[xowiki::page_templates\]}} } + {with_categories false} } PageInstanceForm instproc set_submit_link_edit {} { my instvar folder_id data @@ -411,6 +417,10 @@ return "