Loading view/unicaen-enquete/resultat/resultats.phtml +4 −2 Original line number Diff line number Diff line Loading @@ -241,7 +241,7 @@ $nbElements = count($elements); </thead> <tbody> <?php foreach ($reponses as $id => $valeur) : ?> <?php if ($id !== 0) : ?> <?php if ($id != 0) : ?> <?php $nbOccurence = isset($results[$question->getId()][$id]) ? count($results[$question->getId()][$id]) : 0; $nbReponse = isset($results[$question->getId()][$id]) ? count($results[$question->getId()][$id]) : 0; Loading Loading @@ -366,7 +366,9 @@ $nbElements = count($elements); if ($reponse) { foreach ($enquete->getQuestions() as $question) { $current = $reponse->getReponseFor($question); if ($question->hasNote()) $data['evaluation_' . $question->getId()] = isset($current)?$reponses[$current->getReponse()] : ""; if ($question->hasNote()) { $data['evaluation_' . $question->getId()] = (isset($current) AND $current->getReponse() AND isset($reponse[$current->getReponse()]))?$reponses[$current->getReponse()] : ""; } if ($question->hasCommentaire()) $data['commentaire_' . $question->getId()] = isset($current)?html_entity_decode(strip_tags($current->getCommentaire())) : ""; } } Loading Loading
view/unicaen-enquete/resultat/resultats.phtml +4 −2 Original line number Diff line number Diff line Loading @@ -241,7 +241,7 @@ $nbElements = count($elements); </thead> <tbody> <?php foreach ($reponses as $id => $valeur) : ?> <?php if ($id !== 0) : ?> <?php if ($id != 0) : ?> <?php $nbOccurence = isset($results[$question->getId()][$id]) ? count($results[$question->getId()][$id]) : 0; $nbReponse = isset($results[$question->getId()][$id]) ? count($results[$question->getId()][$id]) : 0; Loading Loading @@ -366,7 +366,9 @@ $nbElements = count($elements); if ($reponse) { foreach ($enquete->getQuestions() as $question) { $current = $reponse->getReponseFor($question); if ($question->hasNote()) $data['evaluation_' . $question->getId()] = isset($current)?$reponses[$current->getReponse()] : ""; if ($question->hasNote()) { $data['evaluation_' . $question->getId()] = (isset($current) AND $current->getReponse() AND isset($reponse[$current->getReponse()]))?$reponses[$current->getReponse()] : ""; } if ($question->hasCommentaire()) $data['commentaire_' . $question->getId()] = isset($current)?html_entity_decode(strip_tags($current->getCommentaire())) : ""; } } Loading