Correction case incorrectement cochée

FossilOrigin-Name: 931d114c657192f31782dd3780630e6fc1f7a824f2e8ad30e50717ab92ff5d38
This commit is contained in:
engel 2024-01-03 15:44:52 +00:00
parent 37b05bfe6a
commit f6d0e34923
2 changed files with 2 additions and 1 deletions

View File

@ -62,6 +62,7 @@ $tpl->assign('lesTarifs', $_SESSION['lesTarifs']);
$tpl->assign('lesActivites', $_SESSION['lesActivites']); $tpl->assign('lesActivites', $_SESSION['lesActivites']);
$tpl->assign('activitesTarifsComptes', $activitesTarifsComptes); $tpl->assign('activitesTarifsComptes', $activitesTarifsComptes);
$tpl->assign('comptesSansActivite', $comptesSansActivite); $tpl->assign('comptesSansActivite', $comptesSansActivite);
$tpl->assign('nbComptesSansActivite',count($comptesSansActivite));
$tpl->assign('nbTarifs', count($activitesTarifsComptes)); $tpl->assign('nbTarifs', count($activitesTarifsComptes));
$tpl->assign('nbComptes', count($_SESSION['comptes'])); $tpl->assign('nbComptes', count($_SESSION['comptes']));
$tpl->assign('plugin_config', $plugin->getConfig()); $tpl->assign('plugin_config', $plugin->getConfig());

View File

@ -102,7 +102,7 @@
$activite = $lesActivites[$tarif->idActivite]; $activite = $lesActivites[$tarif->idActivite];
?> ?>
<div class="activite"> <div class="activite">
{if $nbTarifs == 1} {if $nbTarifs == 1 && $nbComptesSansActivite == 0}
{input {input
type="checkbox" type="checkbox"
name="tarifs[]" name="tarifs[]"