Bugzilla – Attachment 44138 Details for
Bug 14903
Remove C4::Dates from circ/circulation.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14903 - (followup)Remove C4::Dates from circ/circulation.pl
Bug-14903---followupRemove-C4Dates-from-circcircul.patch (text/plain), 1.78 KB, created by
Jonathan Druart
on 2015-10-29 08:35:18 UTC
(
hide
)
Description:
Bug 14903 - (followup)Remove C4::Dates from circ/circulation.pl
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-10-29 08:35:18 UTC
Size:
1.78 KB
patch
obsolete
>From ee57e8fc1d609fbfc4dc059500716d8eb89d8a9a Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Tue, 27 Oct 2015 17:50:21 +0100 >Subject: [PATCH] Bug 14903 - (followup)Remove C4::Dates from > circ/circulation.pl > >Follow up to fix QA issues from comment #15 >...and amended for comment #18 > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > circ/circulation.pl | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > >diff --git a/circ/circulation.pl b/circ/circulation.pl >index 1812061..bac91d7 100755 >--- a/circ/circulation.pl >+++ b/circ/circulation.pl >@@ -174,7 +174,8 @@ for my $barcode ( @$barcodes ) { > > my $stickyduedate = $query->param('stickyduedate') || $session->param('stickyduedate'); > my $duedatespec = $query->param('duedatespec') || $session->param('stickyduedate'); >-$duedatespec = eval { output_pref( { dt => dt_from_string( $duedatespec ), dateformat => 'iso' }); }; >+$duedatespec = eval { output_pref( { dt => dt_from_string( $duedatespec ), dateformat => 'iso' }); } >+ if ( $duedatespec ); > > my $issueconfirmed = $query->param('issueconfirmed'); > my $cancelreserve = $query->param('cancelreserve'); >@@ -203,11 +204,11 @@ if( $onsite_checkout && !$duedatespec_allow ) { > $datedue = output_pref({ dt => dt_from_string, dateonly => 1, dateformat => 'iso' }); > $datedue .= ' 23:59:00'; > } elsif( $duedatespec_allow ) { >- if ($datedue) { >- $datedue = eval { dt_from_string( $datedue ) }; >+ if ( $duedatespec ) { >+ $datedue = eval { dt_from_string( $duedatespec ) }; > if (! $datedue ) { > $invalidduedate = 1; >- $template->param( IMPOSSIBLE=>1, INVALID_DATE=>$datedue ); >+ $template->param( IMPOSSIBLE=>1, INVALID_DATE=>$duedatespec ); > } > } > } >-- >2.1.0
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 14903
:
42895
|
42989
|
43303
|
43958
|
44072
|
44096
|
44131
|
44137
| 44138