PHRAS-3706 Prod - 500 error when print a feedback report (#4088)

* owner have not a vote

* general fix

* unused var
This commit is contained in:
Aina Sitraka
2022-07-08 19:45:31 +03:00
committed by GitHub
parent f150d2a3cd
commit 4ee8b67e79

View File

@@ -844,7 +844,13 @@ class PDFRecords extends PDF
// if ($iparticipant++ > 0) {
// $this->pdf->SetY($this->pdf->GetY()+1);
// }
try {
$basketElementVote = $basketElement->getUserVote($participant->getUser(), false);
} catch (\Exception $e) {
// maybe participant ( like owner ) cannot/havenot a vote
continue;
}
$this->pdf->Write(5, '- ' . $this->getDisplayName($participant->getUser(), true). " : ");