diff --git a/application/controllers/PrintanswersController.php b/application/controllers/PrintanswersController.php index 73cd3c389e9..803a91d1c9b 100644 --- a/application/controllers/PrintanswersController.php +++ b/application/controllers/PrintanswersController.php @@ -124,6 +124,16 @@ function actionView($surveyid, $printableexport = false) $oResponseRow = SurveyDynamic::model($iSurveyID); $printanswershonorsconditions = Yii::app()->getConfig('printanswershonorsconditions'); $groupArray = $oResponseRow->getPrintAnswersArray($sSRID, $sLanguage, $printanswershonorsconditions); + + // Remove all content from result. + Yii::import('application.helpers.viewHelper'); + foreach ($groupArray as &$group) { + $group['description'] = viewHelper::flatEllipsizeText($group['description'], true, 0); + foreach ($group['answerArray'] as &$answer) { + $answer['question'] = viewHelper::flatEllipsizeText($answer['question'], true, 0); + } + } + $aData['aSurveyInfo'] = $aSurveyInfo; $aData['aSurveyInfo']['dateFormat'] = getDateFormatData(Yii::app()->session['dateformat']); $aData['aSurveyInfo']['groupArray'] = $groupArray;