diff --git a/htdocs/accountancy/closure/index.php b/htdocs/accountancy/closure/index.php index 5c516b0819a..beed14cfb07 100644 --- a/htdocs/accountancy/closure/index.php +++ b/htdocs/accountancy/closure/index.php @@ -156,8 +156,8 @@ if (empty($reshook)) { } } elseif ($action == 'confirm_step_2' && $confirm == "yes" && $user->hasRight('accounting', 'fiscalyear', 'write')) { $new_fiscal_period_id = GETPOSTINT('new_fiscal_period_id'); - $separate_auxiliary_account = (!empty(GETPOST('separate_auxiliary_account', 'none')) ? 1 : 0); - $generate_bookkeeping_records = (!empty(GETPOST('generate_bookkeeping_records', 'none')) ? 1 : 0); + $separate_auxiliary_account = (!empty(GETPOST('separate_auxiliary_account')) ? 1 : 0); + $generate_bookkeeping_records = (!empty(GETPOST('generate_bookkeeping_records')) ? 1 : 0); $error = 0; if ($generate_bookkeeping_records) {