From fe4f8e430b4bf82ba3c0e348bf2da6be9af6f1dd Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Tue, 12 Mar 2013 10:28:21 +0100 Subject: [PATCH] Fixed issue #7643: Answer code is not set in comment field headings when exporting responses --- application/helpers/admin/exportresults_helper.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/application/helpers/admin/exportresults_helper.php b/application/helpers/admin/exportresults_helper.php index e387a4f5899..03fbd9e4b38 100644 --- a/application/helpers/admin/exportresults_helper.php +++ b/application/helpers/admin/exportresults_helper.php @@ -1005,16 +1005,10 @@ public function getCodeFieldSubHeading(SurveyObj $survey, FormattingOptions $oOp { $subHeading .= ' '.$this->getOtherSubHeading(); } - elseif (!$isComment) + else { $subHeading .= ' ['.$answerCode.']'; } - if (isset($isComment) && $isComment == true) - { - $subHeading .= ' '.$this->getCommentSubHeading(); - $comment = false; - } - break; case ':':