Skip to content

Commit

Permalink
Fixed issue #17522: SQL error when exporting responses
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Sep 1, 2021
1 parent 3f1f5f1 commit c27613f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/helpers/admin/exportresults_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ function exportResponses($iSurveyId, $sLanguageCode, $sExportPlugin, FormattingO
$writer->init($survey, $sLanguageCode, $oOptions);

$countResponsesCommand = $surveyDao->loadSurveyResults($survey, $oOptions->responseMinRecord, $oOptions->responseMaxRecord, $sFilter, $oOptions->responseCompletionState, $oOptions->selectedColumns, $oOptions->aResponses);
$countResponsesCommand->order = null;
$countResponsesCommand->select('count(*)');
$reponsesCount = $countResponsesCommand->queryScalar();
$maxRows = 100;
Expand Down

0 comments on commit c27613f

Please sign in to comment.