Skip to content

Commit

Permalink
Fixed issue #12585: In quotas some answer options using non-ASCII cha…
Browse files Browse the repository at this point in the history
…racters are not shown in overview

Dev Note that substr() is NOT UTF-8 safe
  • Loading branch information
c-schmitz committed Aug 10, 2017
1 parent 1ab074c commit adccb2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/quotas.php
Expand Up @@ -571,7 +571,7 @@ function getQuotaAnswers($iQuestionId, $iSurveyId, $iQuotaId)

foreach ($aAnsResults as $aDbAnsList)
{
$aAnswerList[$aDbAnsList['code']] = array('Title' => $aQuestion['title'], 'Display' => substr($aDbAnsList['answer'], 0, 40), 'code' => $aDbAnsList['code']);
$aAnswerList[$aDbAnsList['code']] = array('Title' => $aQuestion['title'], 'Display' => $aDbAnsList['answer'], 'code' => $aDbAnsList['code']);
}

} elseif ($aQuestionType == 'A')
Expand Down

0 comments on commit adccb2a

Please sign in to comment.