Suppression code inutile

This commit is contained in:
Jean-Christophe Engel 2024-01-11 10:28:21 +01:00
parent a187babbac
commit 80a5245bc8

View File

@ -8,7 +8,6 @@ $users = new Users\Users;
f(['id' => 'required|numeric']); f(['id' => 'required|numeric']);
$id = (int) qg('id'); $id = (int) qg('id');
$id_field = Users\DynamicFields::getNameFieldsSQL();
$sign_tag = UserTemplate\Functions::signature(); $sign_tag = UserTemplate\Functions::signature();
// Vérification que le document existe // Vérification que le document existe
@ -25,7 +24,6 @@ try
if ($f->receveur_membre) if ($f->receveur_membre)
{ {
$c = $users->get($f->receveur_id); $c = $users->get($f->receveur_id);
$c->$id_field = $c->$identite;
foreach(['ville','code_postal','adresse'] as $v) foreach(['ville','code_postal','adresse'] as $v)
{ {
if($c->$v == '') if($c->$v == '')
@ -37,7 +35,6 @@ try
else else
{ {
$c = $client->get($f->receveur_id); $c = $client->get($f->receveur_id);
$c->$id_field = $c->nom;
} }
} }
catch(UserException $e) catch(UserException $e)