FIX #37323 Accountancy closure page - Problem with GETPOSTINT cannot read checkbox values properly (#37325)

This commit is contained in:
Alexandre SPANGARO 2026-02-24 17:49:26 +01:00 committed by GitHub
parent 6b228411de
commit f85c6d6495
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 = GETPOSTINT('separate_auxiliary_account');
$generate_bookkeeping_records = GETPOSTINT('generate_bookkeeping_records');
$separate_auxiliary_account = (!empty(GETPOST('separate_auxiliary_account', 'none')) ? 1 : 0);
$generate_bookkeeping_records = (!empty(GETPOST('generate_bookkeeping_records', 'none')) ? 1 : 0);
$error = 0;
if ($generate_bookkeeping_records) {