Bugzilla – Attachment 42927 Details for
Bug 14916
Overdues are not listed if due on 23:59 of the 'to date' (Was: Remove C4::Dates from circ/overdue.pl)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14916 - Remove C4::Dates from circ/overdue.pl
Bug-14916---Remove-C4Dates-from-circoverduepl.patch (text/plain), 2.34 KB, created by
Marc Véron
on 2015-09-28 14:52:52 UTC
(
hide
)
Description:
Bug 14916 - Remove C4::Dates from circ/overdue.pl
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2015-09-28 14:52:52 UTC
Size:
2.34 KB
patch
obsolete
>From 9f6ed66ee72312297e6c054957808f305fbea709 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Mon, 28 Sep 2015 16:44:30 +0200 >Subject: [PATCH] Bug 14916 - Remove C4::Dates from circ/overdue.pl > >Patch to remove deprectated C4::Dates from circ/overdue.pl > >To test: > >- Tests without patch: >- Make sure that you have patron(s) with overdues. >- Go to Home > Circulation > Overdues >- Apply date filter, perform CSV download > >Apply patch, then >- Reload page >- Check that everything behaves as before >--- > circ/overdue.pl | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > >diff --git a/circ/overdue.pl b/circ/overdue.pl >index 01a80d2..fc7dca7 100755 >--- a/circ/overdue.pl >+++ b/circ/overdue.pl >@@ -27,7 +27,6 @@ use CGI qw(-oldstyle_urls -utf8); > use C4::Auth; > use C4::Branch; > use C4::Debug; >-use C4::Dates qw/format_date format_date_in_iso/; > use Text::CSV_XS; > use Koha::DateUtils; > use DateTime; >@@ -43,8 +42,10 @@ my $branchfilter = $input->param('branch') || ''; > my $homebranchfilter = $input->param('homebranch') || ''; > my $holdingbranchfilter = $input->param('holdingbranch') || ''; > my $op = $input->param('op') || ''; >-my $dateduefrom = format_date_in_iso($input->param( 'dateduefrom' )) || ''; >-my $datedueto = format_date_in_iso($input->param( 'datedueto' )) || ''; >+my $dateduefrom = ''; >+$dateduefrom = output_pref({ dt => dt_from_string( $input->param( 'dateduefrom' ) ), dateformat => 'iso', dateonly => 1 }) if ( $input->param( 'dateduefrom' ) ); >+my $datedueto = ''; >+$datedueto = output_pref({ dt => dt_from_string( $input->param( 'datedueto' ) ), dateformat => 'iso', dateonly => 1 }) if ( $input->param( 'datedueto' ) ); > # FIXME This is a kludge to include times > if ($datedueto) { > $datedueto .= ' 23:59'; >@@ -348,7 +349,7 @@ if ($noreport) { > barcode => $data->{barcode}, > cardnumber => $data->{cardnumber}, > itemnum => $data->{itemnumber}, >- issuedate => format_date($data->{issuedate}), >+ issuedate => output_pref({ dt => dt_from_string( $data->{issuedate} ), dateonly => 1 }), > borrowertitle => $data->{borrowertitle}, > surname => $data->{surname}, > firstname => $data->{firstname}, >-- >1.7.10.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 14916
:
42927
|
42928
|
43344
|
43375
|
43405
|
43567