Skip to content

Commit

Permalink
Fixed issue #7898: Can't delete a survey
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jun 2, 2013
1 parent 5f5f30f commit 5385243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Survey.php
Expand Up @@ -369,7 +369,7 @@ public function deleteSurvey($iSurveyID, $recursive=true)
Assessment::model()->deleteAllByAttributes(array('sid' => $iSurveyID));
QuestionGroup::model()->deleteAllByAttributes(array('sid' => $iSurveyID));
SurveyLanguageSetting::model()->deleteAllByAttributes(array('surveyls_survey_id' => $iSurveyID));
Permission::model()->deleteAllByAttributes(array('sid' => $iSurveyID));
Permission::model()->deleteAllByAttributes(array('entity_id' => $iSurveyID, 'entity'=>'survey'));
SavedControl::model()->deleteAllByAttributes(array('sid' => $iSurveyID));
SurveyURLParameter::model()->deleteAllByAttributes(array('sid' => $iSurveyID));
//Remove any survey_links to the CPDB
Expand Down

0 comments on commit 5385243

Please sign in to comment.