Index: openacs-4/packages/survey/www/process-response.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/survey/www/process-response.tcl,v diff -u -r1.3 -r1.3.2.1 --- openacs-4/packages/survey/www/process-response.tcl 24 Sep 2002 02:27:39 -0000 1.3 +++ openacs-4/packages/survey/www/process-response.tcl 8 Oct 2002 01:02:52 -0000 1.3.2.1 @@ -70,7 +70,7 @@ } } - if { [exists_and_not_null response_to_question($question_id)] || ($abstract_data_type=="choice" && ![empty_string_p [lindex $response_to_question($question_id) 0]])} { + if { [exists_and_not_null response_to_question($question_id)] } { set response_value [string trim $response_to_question($question_id)] } elseif {$required_p == "t"} { lappend questions_with_missing_responses $question_text @@ -169,7 +169,7 @@ values (:response_id, :question_id, :response_value)" } } else { - if { [empty_string_p $response_value] } { + if { [empty_string_p $response_value] || [empty_string_p [lindex $response_value 0]] } { set response_value [db_null] } Index: openacs-4/packages/survey/www/respond.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/survey/www/respond.adp,v diff -u -r1.2 -r1.2.2.1 --- openacs-4/packages/survey/www/respond.adp 16 Sep 2002 19:54:39 -0000 1.2 +++ openacs-4/packages/survey/www/respond.adp 8 Oct 2002 01:02:52 -0000 1.2.2.1 @@ -19,7 +19,7 @@