Fk account not saved (#33396)

When bank account is set but there's an error, it's lost

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
Vincent Maury 2025-03-11 03:24:52 +01:00 committed by GitHub
parent 4cb4be3774
commit a93ca347c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1993,7 +1993,7 @@ if ($action == 'create') {
if (GETPOSTISSET('mode_reglement_id')) {
$mode_reglement_id = GETPOSTINT('mode_reglement_id');
}
if (GETPOSTISSET('cond_reglement_id')) {
if (GETPOSTISSET('fk_account')) {
$fk_account = GETPOSTINT('fk_account');
}
}