Index: openacs-4/packages/survey/www/admin/view-text-responses.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/survey/www/admin/view-text-responses.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/survey/www/admin/view-text-responses.tcl 21 Jan 2005 17:24:28 -0000 1.3 +++ openacs-4/packages/survey/www/admin/view-text-responses.tcl 6 Nov 2013 07:33:55 -0000 1.4 @@ -21,17 +21,17 @@ set survey_name $survey_info(name) set survey_id $survey_info(survey_id) -ad_require_permission $survey_id survey_admin_survey +permission::require_permission -object_id $survey_id -privilege survey_admin_survey set abstract_data_type [db_string abstract_data_type "select abstract_data_type from survey_questions q where question_id = :question_id"] -if { $abstract_data_type == "text" } { +if { $abstract_data_type eq "text" } { set column_name "clob_answer" -} elseif { $abstract_data_type == "shorttext" } { +} elseif { $abstract_data_type eq "shorttext" } { set column_name "varchar_answer" -} elseif { $abstract_data_type == "date" } { +} elseif { $abstract_data_type eq "date" } { set column_name "date_answer" } @@ -40,4 +40,4 @@ db_multirow responses all_responses_to_question {} -set context [list [list "one?[export_url_vars survey_id]" $survey_info(name)] "[_ survey.lt_Responses_to_Question]"] +set context [list [list "one?[export_vars -url {survey_id}]" $survey_info(name)] "[_ survey.lt_Responses_to_Question]"]