From be9aea5007ab78bf36970edba717d7ed9070fda0 Mon Sep 17 00:00:00 2001 From: Charles Delachapelle Evarisk Date: Mon, 9 Sep 2024 14:47:18 +0200 Subject: [PATCH] #4079 [Card] fix: accident gauge --- view/accident/accident_card.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/view/accident/accident_card.php b/view/accident/accident_card.php index 3f02511b3..9b7ab7da1 100644 --- a/view/accident/accident_card.php +++ b/view/accident/accident_card.php @@ -865,7 +865,7 @@ $arrayAccident[] = $object->accident_location; break; } - $arrayAccident[] = $userVictim->id; + $arrayAccident[] = $userVictim->id > 0 ? $userVictim->id : ''; $accidentLesions = $accidentLesion->fetchAll('', '', 0, 0, ['customsql' => 't.fk_accident = ' . $object->id]); $arrayAccident[] = (is_array($accidentLesions) && !empty($accidentLesions)) ? count($accidentLesions) : ''; @@ -987,14 +987,6 @@ } print ''; - //User Victim -- Victime de l'accident - print ''; - print $form->textwithpicto($langs->trans("UserVictim"), $langs->trans("GaugeCounter"), 1, 'info'); - print ''; - print ''; - print $userVictim->getNomUrl(1); - print ''; - //Accident type -- Type de l'accident print ''; print $form->textwithpicto($langs->trans("AccidentType"), $langs->trans("GaugeCounter"), 1, 'info');