diff --git a/htdocs/accountancy/admin/index.php b/htdocs/accountancy/admin/index.php index c999e44d813..49e773712bf 100644 --- a/htdocs/accountancy/admin/index.php +++ b/htdocs/accountancy/admin/index.php @@ -238,11 +238,9 @@ if ($action == 'update_export') { // Export options $modelcsv = GETPOSTINT('ACCOUNTING_EXPORT_MODELCSV'); - if (!$error) { - // reload - $configuration = $accountancyexport->getTypeConfig(); - $listparam = $configuration['param']; - } + // reload + $configuration = $accountancyexport->getTypeConfig(); + $listparam = $configuration['param']; if (!empty($modelcsv)) { if (!dolibarr_set_const($db, 'ACCOUNTING_EXPORT_MODELCSV', $modelcsv, 'chaine', 0, '', $conf->entity)) {