Skip to content

Commit

Permalink
Fixed issue #9838: Data in timings cannot be deleted normally
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Aug 21, 2015
1 parent f094eed commit 9424e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/responses.php
Expand Up @@ -877,7 +877,7 @@ public function actionDelete($iSurveyId,$sResponseId)
Response::model($iSurveyId)->findByPk($iResponseId)->delete(true);
$oSurvey=Survey::model()->findByPk($iSurveyId);
if($oSurvey->savetimings == "Y"){// TODO : add it to response delete (maybe test if timing table exist)
SurveyTimingDynamic::model($iSurveyID)->deleteByPk($iResponseId);
SurveyTimingDynamic::model($iSurveyId)->deleteByPk($iResponseId);
}
}
}
Expand Down

0 comments on commit 9424e01

Please sign in to comment.