learning-unlimited/ESP-Website — pull request #328 by gkanwar (2012-04-06 05:25:50+00:00)
Title: Implements copying of surveys

There are two parts to this:
1. Have the admin action make use of the save_survey and load_survey functions that existed before.
To copy the survey, the process is to make a memory file, save the survey to it, then load the survey from it. This creates a copy but leaves all the properties the same which leads to:
2. Whenever you change the program anchor of a survey all the survey questions are changed too.
Since survey questions are linked to one survey only, it never makes sense for them to have different anchors. I changed the admin page to change all the survey questions for a survey to match the anchor when you save the survey (in the admin panel).