Commit 063e58a6 authored by ZeMKI's avatar ZeMKI
Browse files

Update AllInterviewTokenExport.php

parent 52e9652e
......@@ -162,6 +162,8 @@ class AllInterviewTokenExport implements FromCollection, WithMapping, WithHeadin
{
return $item->detail == "extremeQuestion";
})->first();
$toPrint['Reason for Placement'] = "";
if ($hasExtremeQuestion !== "" && $interview->answers)
{
foreach ($interview->answers as $answer)
......@@ -170,8 +172,6 @@ class AllInterviewTokenExport implements FromCollection, WithMapping, WithHeadin
if($tokenToCheck->id === $token_answer->token_id) $toPrint['Reason for Placement'] = $token_answer->text;
}
}else{
$toPrint['Reason for Placement'] = "";
}
$toPrint["token description"] = json_decode($token->properties) ? json_decode($token->properties)->description : '' ;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment