Correction case incorrectement cochée

FossilOrigin-Name: 79c7e1408f18c1b715f2ed79a0567fd71cd78a20d8726a711f2cefbc0c4b7541
This commit is contained in:
engel 2024-01-03 15:35:17 +00:00
parent 977046b657
commit a132bec27d
2 changed files with 2 additions and 1 deletions

View File

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

View File

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