Skip to content

Commit

Permalink
Hotfix - verificar #87
Browse files Browse the repository at this point in the history
  • Loading branch information
alantygel committed Mar 27, 2023
1 parent 3a84a62 commit 7befd5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Models/Core/CadernoModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@ public function getPerguntasRespostas()

if ($pergunta['tipo'] == TipoTemplatePerguntaEnum::Check || $pergunta['tipo'] == TipoTemplatePerguntaEnum::MultipleCheck) {
foreach ($resposta as $kk => $vv) {
$value[] = $vv['template_resposta']['descricao'];
if(isset($vv['template_reposta']) && $vv['template_resposta']){
$value[] = $vv['template_resposta']['descricao'];
}
}
} else {
$value = [@$resposta[0]['resposta']];
Expand Down

0 comments on commit 7befd5e

Please sign in to comment.