[Koha-bugs] [Bug 16527] Sticky due date calendar unexpected behaviour
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue May 17 15:29:55 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16527
Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Depends on| |10067
CC| |eivin at sysmystic.com,
| |jonathan.druart at bugs.koha-c
| |ommunity.org
--- Comment #1 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
It seems that it is a regression introduced by bug 10067.
I'd say that the following diff will fix it:
diff --git a/circ/circulation.pl b/circ/circulation.pl
index 66b3dcf..d7fcfbb 100755
--- a/circ/circulation.pl
+++ b/circ/circulation.pl
@@ -166,7 +166,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 eq "highholds_empty") {
undef $restoreduedatespec;
}
But I have no idea if it won't break bug 10067.
Eivin, could you have a look please?
Referenced Bugs:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10067
[Bug 10067] decreaseLoanHighHolds messes with specify due date
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list