fix: rétablir la création des portées

This commit is contained in:
Alexandre NOEL 2026-09-15 18:27:40 +02:00
commit 2029849f18
14 changed files with 35 additions and 21 deletions

View file

@ -314,7 +314,7 @@ final class MedicalDocumentsController
private static function history(PDO $db, int $animalId, string $label, string $details): void
{
$db->prepare(
"INSERT INTO animal_history(animal_id,type,label,details,user_id) VALUES(?,'medical',?,?,?)",
"INSERT INTO animal_history(animal_id,action,type,label,details,user_id) VALUES(?,'medical','medical',?,?,?)",
)->execute([$animalId, $label, $details, Auth::id()]);
}
private static function fr(string $date): string