Index: openacs-4/packages/xowiki/tcl/xowiki-utility-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-utility-procs.tcl,v diff -u -N -r1.12 -r1.13 --- openacs-4/packages/xowiki/tcl/xowiki-utility-procs.tcl 31 May 2010 13:13:07 -0000 1.12 +++ openacs-4/packages/xowiki/tcl/xowiki-utility-procs.tcl 9 Jun 2010 12:53:28 -0000 1.13 @@ -244,7 +244,7 @@ set f [FormPage get_instance_from_db -item_id $item_id] if {[$f page_template] != $form_id} { ns_log notice "... must change form_id from [$f page_template] to $form_id" - db_dml chg0 "update xowiki_page_instance set page_template = $form_id where revision_id = [$f revision_id]" + db_dml chg0 "update xowiki_page_instance set page_template = $form_id where page_instance_id = [$f revision_id]" } return }