From: Paul Poulain <[email protected]> uploading the circ overdues result in a csv with columns in a strange order and not the order of the screen This patch reorder the column by putting the usefull ones first
Signed-off-by: Magnus Enger <[email protected]> --- circ/overdue.pl | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/circ/overdue.pl b/circ/overdue.pl index 18851a6..59ce220 100755 --- a/circ/overdue.pl +++ b/circ/overdue.pl @@ -392,7 +392,8 @@ sub build_csv { my @lines = (); # build header ... - my @keys = grep { $_ ne 'patron_attr_value_loop' } sort keys %{ $overdues->[0] }; + my @keys = qw /duedate title author borrowertitle name phone barcode email address address2 zipcode city country + branchcode itemcallnumber biblionumber borrowernumber itemnum replacementprice streetnumber streettype/; my $csv = Text::CSV_XS->new(); $csv->combine(@keys); push @lines, $csv->string(); -- 1.7.4.1 _______________________________________________ Koha-patches mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
