amélioration gestion champs nom

FossilOrigin-Name: 488779d3afad6864200d59e0ee7443c89214925ccb0b157c0fd462373b685750
This commit is contained in:
engel 2022-03-29 12:49:54 +00:00
parent 2bdd771a70
commit 2fddc192f9

View File

@ -23,9 +23,11 @@ foreach ($plugin->getConfig('reduction') as $taux)
// idem avec les champs nom/prénom // idem avec les champs nom/prénom
$nbChamps = 0; $nbChamps = 0;
if (null !== $plugin->getConfig('nomChamps')) $champsNom = Utils::getChampsNom($config, $plugin);
if (null !== $champsNom)
{ {
foreach ($plugin->getConfig('nomChamps') as $nom => $champ) foreach ($champsNom as $nom => $champ)
{ {
if ($champ->position != 0) { ++$nbChamps; } if ($champ->position != 0) { ++$nbChamps; }
} }