Skip to content

Commit

Permalink
#4079 [Card] fix: accident gauge
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-charles committed Sep 17, 2024
1 parent f0f6b28 commit be9aea5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions view/accident/accident_card.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) : '';
Expand Down Expand Up @@ -987,14 +987,6 @@
}
print '</td></tr>';

//User Victim -- Victime de l'accident
print '<tr><td class="titlefield">';
print $form->textwithpicto($langs->trans("UserVictim"), $langs->trans("GaugeCounter"), 1, 'info');
print '</td>';
print '<td>';
print $userVictim->getNomUrl(1);
print '</td></tr>';

//Accident type -- Type de l'accident
print '<tr><td class="titlefield">';
print $form->textwithpicto($langs->trans("AccidentType"), $langs->trans("GaugeCounter"), 1, 'info');
Expand Down

0 comments on commit be9aea5

Please sign in to comment.