mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
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:
@@ -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). " : ");
|
||||
|
||||
|
Reference in New Issue
Block a user