From 993025b7ce348d6b3e4a82c845acea72b4bf8160 Mon Sep 17 00:00:00 2001 From: Chris Bendel Date: Thu, 29 Jun 2023 11:24:09 -0400 Subject: [PATCH] reference right variable --- backend/app/services/clone_survey.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/services/clone_survey.rb b/backend/app/services/clone_survey.rb index 9a2231f64..cdc4927f6 100644 --- a/backend/app/services/clone_survey.rb +++ b/backend/app/services/clone_survey.rb @@ -12,7 +12,7 @@ def initialize(survey_id=Rails.application.secrets.qualtrics_template_survey_id) def clone(new_name) return [@survey_id, 'dev-no-key'] unless Rails.env.production? - @source = api.get_survey_definition(survey_id, format: 'qsf') + @source = api.get_survey_definition(@survey_id, format: 'qsf') result = @api.create_survey(@source.merge( { SurveyEntry: @source['SurveyEntry'].merge(