X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fsurvey%2Fsurvey.inc.php;h=7e715fd9fbc9d481c91212a2d34b0db63795b86f;hb=3ddf2584d3158f89c2c8dda45ee5499717c71044;hp=865a1481648333e7783d644652789fc3bdaecf12;hpb=22264cd483d16ea6c5096786132cdf9c165bfd07;p=platal.git diff --git a/modules/survey/survey.inc.php b/modules/survey/survey.inc.php index 865a148..7e715fd 100644 --- a/modules/survey/survey.inc.php +++ b/modules/survey/survey.inc.php @@ -104,6 +104,12 @@ class Survey extends PlDBTableEntry implements SurveyQuestionContainer } } + public function clearQuestions() + { + $this->fetchQuestions = true; + $this->questions = array(); + } + public function addQuestion(SurveyQuestion $question, $pos = null) { $question->parent = null;