Bugzilla – Attachment 52550 Details for
Bug 16527
Sticky due date calendar unexpected behaviour
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 16527: Restore sticky due date behavior
PASSED-QA-Bug-16527-Restore-sticky-due-date-behavi.patch (text/plain), 1.74 KB, created by
Katrin Fischer
on 2016-06-19 15:43:18 UTC
(
hide
)
Description:
[PASSED QA] Bug 16527: Restore sticky due date behavior
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2016-06-19 15:43:18 UTC
Size:
1.74 KB
patch
obsolete
>From e43418cff0987fc7ddfb82235f32a6d4dcb80642 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Sat, 21 May 2016 09:10:46 +0100 >Subject: [PATCH] [PASSED QA] Bug 16527: Restore sticky due date behavior > >Bug 10067 has introduced a regression on the sticky due date behavior: >If "remember for session" is checked and the due date is changed from 1 >checkout to another, the old due date will be used. > >The code added by bug 10067 is really confusing and it's hard to say >this patch won't introduce another regression. >The manipulation of $restoreduedatespec, $duedatespec and $stickyduedate >is not easy to follow. > >Test plan: >Confirm that the regression is fixed and that this patch will not >introduced a regression on bug 10067 (good luck!) > >Signed-off-by: Eivin Giske Skaaren <eivin@sysmystic.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > circ/circulation.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/circ/circulation.pl b/circ/circulation.pl >index 3057370..bf10bc6 100755 >--- a/circ/circulation.pl >+++ b/circ/circulation.pl >@@ -164,7 +164,7 @@ my $stickyduedate = $query->param('stickyduedate') || $session->param('stickydu > my $duedatespec = $query->param('duedatespec') || $session->param('stickyduedate'); > $duedatespec = eval { output_pref( { dt => dt_from_string( $duedatespec ), dateformat => 'iso' }); } > if ( $duedatespec ); >-my $restoreduedatespec = $query->param('restoreduedatespec') || $session->param('stickyduedate') || $duedatespec; >+my $restoreduedatespec = $query->param('restoreduedatespec') || $duedatespec || $session->param('stickyduedate'); > if ( $restoreduedatespec && $restoreduedatespec eq "highholds_empty" ) { > undef $restoreduedatespec; > } >-- >1.9.1
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 16527
:
51673
|
51701
|
52508
| 52550