Bugzilla – Attachment 64230 Details for
Bug 18734
Internal server error in cash_register_stats.pl when exporting to file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18734 - Internal server error in cash_register_stats.pl when exporting to file
Bug-18734---Internal-server-error-in-cashregisters.patch (text/plain), 2.67 KB, created by
Jonathan Druart
on 2017-06-12 17:32:48 UTC
(
hide
)
Description:
Bug 18734 - Internal server error in cash_register_stats.pl when exporting to file
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-06-12 17:32:48 UTC
Size:
2.67 KB
patch
obsolete
>From 1266a5b076609325fc41ae9a25b877421cf833de Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 9 Jun 2017 10:17:25 -0400 >Subject: [PATCH] Bug 18734 - Internal server error in cash_register_stats.pl > when exporting to file >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >To test: >Output cash reigster stats report to file >Internal server error >Apply patch >Export to file >File is generated and correctly formed > >Signed-off-by: Marc Véron <veron@veron.ch> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../prog/en/includes/csv_headers/reports/cash_register_stats.tt | 2 +- > .../intranet-tmpl/prog/en/modules/reports/csv/cash_register_stats.tt | 2 +- > reports/cash_register_stats.pl | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/csv_headers/reports/cash_register_stats.tt b/koha-tmpl/intranet-tmpl/prog/en/includes/csv_headers/reports/cash_register_stats.tt >index e70f1b5..0746a69 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/csv_headers/reports/cash_register_stats.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/csv_headers/reports/cash_register_stats.tt >@@ -1 +1 @@ >-mfirstname[% sep %]card number[% sep %]firstname[% sep %]branchname[% sep %]date[% sep %]accounttype[% sep %]amount[% sep %]title[% sep %]barcode[% sep %]"itype" >+mfirstname[% sep %]card number[% sep %]firstname[% sep %]branchname[% sep %]date[% sep %]accounttype[% sep %]amount[% sep %]title[% sep %]barcode[% sep %]itype >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/csv/cash_register_stats.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/csv/cash_register_stats.tt >index fc0b217..caecb08 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/csv/cash_register_stats.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/csv/cash_register_stats.tt >@@ -1,5 +1,5 @@ > [% USE ItemTypes %] >-[% INCLUDE csv_headers/reports/cash_register_stats.tt %] >+[%- INCLUDE csv_headers/reports/cash_register_stats.tt %] > [%- FOREACH row IN rows %] > [%- FOREACH field IN row; > field IF !loop.last; >diff --git a/reports/cash_register_stats.pl b/reports/cash_register_stats.pl >index 7d29119..3bd8cad 100755 >--- a/reports/cash_register_stats.pl >+++ b/reports/cash_register_stats.pl >@@ -169,7 +169,7 @@ if ($do_it) { > my $csvTemplate = C4::Templates::gettemplate('reports/csv/cash_register_stats.tt', 'intranet', $input); > $csvTemplate->param(sep => $delimiter, rows => \@rows, total => \@total ); > print $csvTemplate->output; >- exit(1); >+ exit; > } > > } >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18734
:
64137
|
64142
|
64146
| 64230