Bugzilla – Attachment 44131 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.72 KB, created by
Marc Véron
on 2015-10-28 16:23:44 UTC
(
hide
)
Description:
Bug 14903 - (followup)Remove C4::Dates from circ/circulation.pl
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2015-10-28 16:23:44 UTC
Size:
1.72 KB
patch
obsolete
>From b37c7bd8b21b798b52bcddfe3bfa0a72dd08381e 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 >--- > 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 ); > } > } > } >-- >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 14903
:
42895
|
42989
|
43303
|
43958
|
44072
|
44096
|
44131
|
44137
|
44138