Correction oubli
This commit is contained in:
parent
c9300fe943
commit
b5dc9d0efa
@ -121,7 +121,7 @@ $form->runIf(f('select_cotis') && !$form->hasErrors(),
|
|||||||
}, 'add_cotis_1');
|
}, 'add_cotis_1');
|
||||||
|
|
||||||
$form->runIf(f('add_cotis') && !$form->hasErrors(),
|
$form->runIf(f('add_cotis') && !$form->hasErrors(),
|
||||||
function () use ($radio, $fields, $facture)
|
function () use ($radio, $fields, $facture, $form)
|
||||||
{
|
{
|
||||||
$radio['type'] = f('cotisation');
|
$radio['type'] = f('cotisation');
|
||||||
try
|
try
|
||||||
|
@ -17,7 +17,7 @@ if (!$c)
|
|||||||
}
|
}
|
||||||
|
|
||||||
$form->runIf(f('save') && !$form->hasErrors(),
|
$form->runIf(f('save') && !$form->hasErrors(),
|
||||||
function () use ($client, $id)
|
function () use ($client, $id, $form)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -7,7 +7,7 @@ require_once __DIR__ . '/_inc.php';
|
|||||||
$session->requireAccess($session::SECTION_ACCOUNTING, $session::ACCESS_READ);
|
$session->requireAccess($session::SECTION_ACCOUNTING, $session::ACCESS_READ);
|
||||||
|
|
||||||
$form->runIf(f('add') && !$form->hasErrors(),
|
$form->runIf(f('add') && !$form->hasErrors(),
|
||||||
function () use ($client)
|
function () use ($client, $form)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -18,7 +18,7 @@ if (!$client)
|
|||||||
}
|
}
|
||||||
|
|
||||||
$form->runIf(f('delete') && !$form->hasErrors(),
|
$form->runIf(f('delete') && !$form->hasErrors(),
|
||||||
function () use ($facture, $f)
|
function () use ($facture, $f, $form)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$facture->delete($f->id);
|
$facture->delete($f->id);
|
||||||
|
Loading…
Reference in New Issue
Block a user