Skip to content

Commit

Permalink
Merge pull request #251 from openstax/survey_clone_hotfix
Browse files Browse the repository at this point in the history
reference right variable
  • Loading branch information
nathanstitt authored Jun 29, 2023
2 parents 91a151b + 993025b commit 50f04d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/services/clone_survey.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 50f04d7

Please sign in to comment.