From 6fa5df49ec0174f9b56610d5906a686a22652d92 Mon Sep 17 00:00:00 2001 From: GabrielJenik Date: Wed, 16 Sep 2020 12:25:26 -0300 Subject: [PATCH] Fixed issue #16650: Timing not recorded when exporting results Made the response to be based on the queried response and not start from scratch. Timings are there initially. If starting from scratch, we loose them. --- application/helpers/admin/export/Writer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/helpers/admin/export/Writer.php b/application/helpers/admin/export/Writer.php index be393f6d244..96fb5cc4d30 100644 --- a/application/helpers/admin/export/Writer.php +++ b/application/helpers/admin/export/Writer.php @@ -298,7 +298,7 @@ final public function write(SurveyObj $oSurvey, $sLanguageCode, FormattingOption foreach ($oSurvey->responses as $response) { // prepare the data for decryption $sTokenTableName='tokens_'.$oSurvey->id; - $aResponse = array(); + $aResponse = $response; if (tableExists($sTokenTableName)) { $oToken = Token::model($oSurvey->id); $oToken->setAttributes($response, false);