Changement d'année fiscale avec boîte dialogue
FossilOrigin-Name: 605e1489aaf780359cba3fd9519cf53b1cc936abc5891e09e28693e35102cf30
This commit is contained in:
parent
095df94e2f
commit
37b05bfe6a
3 changed files with 7 additions and 9 deletions
|
|
@ -12,14 +12,13 @@ if ($anneesFiscales[0] < $anneeCourante) {
|
|||
array_unshift($anneesFiscales, $anneeCourante);
|
||||
}
|
||||
|
||||
if (f('change'))
|
||||
{
|
||||
$csrf_key = 'acc_select_year';
|
||||
$form->runIf('change', function () {
|
||||
$_SESSION['annee_recu'] = f('annee_recu');
|
||||
\Paheko\Utils::redirect(f('from') ?: \Paheko\Utils::plugin_url());
|
||||
}
|
||||
}, $csrf_key, PLUGIN_ROOT . '/admin/index.php');
|
||||
|
||||
$tpl->assign(compact('anneesFiscales', 'csrf_key'));
|
||||
|
||||
$tpl->assign('anneesFiscales', $anneesFiscales);
|
||||
$tpl->assign('annee_recu', $_SESSION['annee_recu']);
|
||||
$tpl->assign('from', qg('from'));
|
||||
|
||||
$tpl->display(PLUGIN_ROOT . '/templates/choix_annee.tpl');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue