amélioration gestion champs nom
FossilOrigin-Name: 488779d3afad6864200d59e0ee7443c89214925ccb0b157c0fd462373b685750
This commit is contained in:
parent
2bdd771a70
commit
2fddc192f9
|
@ -23,9 +23,11 @@ foreach ($plugin->getConfig('reduction') as $taux)
|
|||
|
||||
// idem avec les champs nom/prénom
|
||||
$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; }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue