Skip to content

Commit

Permalink
Fixed issue #10436: Question rendering in question explorer improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Feb 16, 2016
1 parent 7f87a06 commit 25cf559
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions application/core/Survey_Common_Action.php
Expand Up @@ -916,11 +916,13 @@ function _surveysidemenu($aData)

foreach($group->aQuestions as $question)
{
if(strlen($question->question)>100)
if(strlen($question->question)>60 && is_object($question) )
{
$question->question = substr($question->question, 0, 50);
$question->question .= ' <br>...<br> ';
$question->question .= substr($question->question, 0, 50);
$sOldQuestion = $question->question;
$sNewQuestion = substr($sOldQuestion, 0, 30);
$sNewQuestion .= ' <br>...<br> ';
$sNewQuestion .= substr($sOldQuestion, -30);
$question->question = $sNewQuestion;
}
}
}
Expand Down

0 comments on commit 25cf559

Please sign in to comment.