Skip to content

Commit

Permalink
Fixed issue #15670, #16330: loaded survey responses are not being dec…
Browse files Browse the repository at this point in the history
…rypted
  • Loading branch information
ptelu committed May 18, 2021
1 parent 51a1963 commit bd1ae3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/frontend_helper.php
Expand Up @@ -53,10 +53,10 @@ function loadanswers()
}
$oCriteria->params = $aParams;
$oResponses = SurveyDynamic::model($surveyid)->with('saved_control')->find($oCriteria);

if (!$oResponses) {
return false;
}
$oResponses->decrypt();

if (isset($oResponses->saved_control) && $oResponses->saved_control) {
$saved_control = $oResponses->saved_control;
Expand Down

0 comments on commit bd1ae3a

Please sign in to comment.