diff --git a/admin/_facture_common.php b/admin/_facture_common.php index 0648c79..cedacfa 100644 --- a/admin/_facture_common.php +++ b/admin/_facture_common.php @@ -121,7 +121,7 @@ $form->runIf(f('select_cotis') && !$form->hasErrors(), }, 'add_cotis_1'); $form->runIf(f('add_cotis') && !$form->hasErrors(), - function () use ($radio, $fields, $facture) + function () use ($radio, $fields, $facture, $form) { $radio['type'] = f('cotisation'); try diff --git a/admin/client_modifier.php b/admin/client_modifier.php index 644b5dd..c3b8e3a 100644 --- a/admin/client_modifier.php +++ b/admin/client_modifier.php @@ -17,7 +17,7 @@ if (!$c) } $form->runIf(f('save') && !$form->hasErrors(), - function () use ($client, $id) + function () use ($client, $id, $form) { try { diff --git a/admin/clients.php b/admin/clients.php index 9d075ce..24fe497 100644 --- a/admin/clients.php +++ b/admin/clients.php @@ -7,7 +7,7 @@ require_once __DIR__ . '/_inc.php'; $session->requireAccess($session::SECTION_ACCOUNTING, $session::ACCESS_READ); $form->runIf(f('add') && !$form->hasErrors(), - function () use ($client) + function () use ($client, $form) { try { diff --git a/admin/facture_supprimer.php b/admin/facture_supprimer.php index 4fc42cb..4711ddb 100644 --- a/admin/facture_supprimer.php +++ b/admin/facture_supprimer.php @@ -18,7 +18,7 @@ if (!$client) } $form->runIf(f('delete') && !$form->hasErrors(), - function () use ($facture, $f) + function () use ($facture, $f, $form) { try { $facture->delete($f->id);