Index: openacs-4/packages/dotlrn-ecommerce/www/ecommerce/finalize-order.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/www/ecommerce/finalize-order.tcl,v diff -u -N -r1.1 -r1.2 --- openacs-4/packages/dotlrn-ecommerce/www/ecommerce/finalize-order.tcl 23 Jun 2005 12:28:21 -0000 1.1 +++ openacs-4/packages/dotlrn-ecommerce/www/ecommerce/finalize-order.tcl 30 Jun 2005 11:50:07 -0000 1.2 @@ -16,10 +16,16 @@ @revision-date April 2002 } { - user_id:integer,notnull + user_id:integer,notnull,optional participant_id:integer,optional } +if { ! [info exists user_id] } { + set user_id [ad_verify_and_get_user_id] +} elseif { $user_id == 0 } { + set user_id [ad_verify_and_get_user_id] +} + # If they reload, we don't have to worry about the credit card # authorization code being executed twice because the order has # already been moved to the 'confirmed' state, which means that they