Index: openacs-4/contrib/packages/simulation/www/simplay/document-upload.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/www/simplay/Attic/document-upload.tcl,v diff -u -N -r1.4 -r1.5 --- openacs-4/contrib/packages/simulation/www/simplay/document-upload.tcl 12 Jan 2004 13:43:14 -0000 1.4 +++ openacs-4/contrib/packages/simulation/www/simplay/document-upload.tcl 12 Jan 2004 15:37:28 -0000 1.5 @@ -22,17 +22,7 @@ {item_id:key} } -if { [llength $role_options] > 1 } { - ad_form -extend -name document -form { - {role_id:text(select) - {label "Role"} - {options $role_options} - } - } - set focus "document.role_id" -} else { - set focus "document.document_file" -} +set focus "document.document_file" ad_form -extend -name document -form { {document_file:file(file) @@ -76,10 +66,6 @@ -revision_id $revision_id \ -status "live" - if { ![exists_and_not_null role_id] } { - set role_id [lindex [lindex $role_options 0] 1] - } - set relation_tag "portfolio" db_dml add_document_to_portfolio { insert into sim_case_role_object_map