Commit b9b51878 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Bug enquete resultat

parent a0c55417
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -366,8 +366,8 @@ $nbElements = count($elements);
        if ($reponse) {
        foreach ($enquete->getQuestions() as $question) {
            $current = $reponse->getReponseFor($question);
            if ($question->hasNote()) $data['evaluation_' . $question->getId()] = $reponses[$current->getReponse()] ?? "";
            if ($question->hasCommentaire()) $data['commentaire_' . $question->getId()] = html_entity_decode(strip_tags($current->getCommentaire())) ?? "";
            if ($question->hasNote()) $data['evaluation_' . $question->getId()] = isset($current)?$reponses[$current->getReponse()] : "";
            if ($question->hasCommentaire()) $data['commentaire_' . $question->getId()] = isset($current)?html_entity_decode(strip_tags($current->getCommentaire())) : "";
            }
        }
        $brut[] = $data;