From 4d1fbc425e53ed4f52c63dd43b894929b003da6b Mon Sep 17 00:00:00 2001 From: sparkyx Date: Thu, 6 Apr 2023 19:35:21 +0200 Subject: [PATCH] Bug export Ledger export CSV : DatabaseCore, only the associative array is sent with Database::fetch_array(PGSQL_ASSOC) --- include/export/export_ledger_csv.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/export/export_ledger_csv.php b/include/export/export_ledger_csv.php index 513bf7670..de6462b57 100644 --- a/include/export/export_ledger_csv.php +++ b/include/export/export_ledger_csv.php @@ -156,11 +156,12 @@ if ( $get_option=="E") } $a_row=array(); $type="text"; - for ($j=0; $j18) - $type="number"; - $export->add($row[$j], $type); + if ($idx_col> 18 ) $type="number"; + $export->add($col,$type); + $idx_col++; } //info payment $ret_reconcile=$cn->execute('reconcile_date',array($row['jr_id']));