diff --git a/langs/fr_FR/digiriskdolibarr.lang b/langs/fr_FR/digiriskdolibarr.lang index b277bce59..675c03674 100644 --- a/langs/fr_FR/digiriskdolibarr.lang +++ b/langs/fr_FR/digiriskdolibarr.lang @@ -396,7 +396,6 @@ AccidentMetaDataCreateTrigger = Enregistrement des données complémentaires de AccidentLesionCreateTrigger = Lésion %s ajoutée à l'accident AccidentLesionModifyTrigger = Lésion %s modifiée sur l'accident AccidentLesionDeleteTrigger = Lésion %s supprimée de l'accident -ACC_USER_EMPLOYERSigned = Signature du reponsable de l'entreprise # Mod Numbering - Modèle de numérotation DigiriskAccidentNumberingModule = Modèle de numérotation des accidents de Digirisk diff --git a/view/accident/accident_card.php b/view/accident/accident_card.php index ba9b46207..f5ad55729 100644 --- a/view/accident/accident_card.php +++ b/view/accident/accident_card.php @@ -66,7 +66,7 @@ $fk_soc = GETPOST('fk_soc'); // Initialize technical objects $object = new Accident($db); -$signatory = new SaturneSignature($db, $object->module, $object->element); +//$signatory = new SaturneSignature($db, $object->module, $object->element); $objectline = new AccidentWorkStop($db); $contact = new Contact($db); $usertmp = new User($db); @@ -213,12 +213,12 @@ if (!$error) { $result = $object->create($user, false); if ($result > 0) { - if (empty($object->fk_user_employer)) { - $usertmp->fetch('', $mysoc->managers, $mysoc->id, 0, $conf->entity); - } else { - $usertmp->fetch($object->fk_user_employer); - } - $signatory->setSignatory($object->id, 'accident', 'user', array($usertmp->id), 'ACC_USER_EMPLOYER'); +// if (empty($object->fk_user_employer)) { +// $usertmp->fetch('', $mysoc->managers, $mysoc->id, 0, $conf->entity); +// } else { +// $usertmp->fetch($object->fk_user_employer); +// } +// $signatory->setSignatory($object->id, 'accident', 'user', array($usertmp->id), 'ACC_USER_EMPLOYER'); // Creation Accident OK $urltogo = str_replace('__ID__', $result, $backtopage);