This patch ensures that the note displayed when checking in a loan
to a restricted patron (and setting the return date) is displayed
whether or not the circulation staffer has chosen the make the return
date override sticky.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
$query->param('return_date_override_remember');
if ($return_date_override) {
if ( C4::Context->preference('SpecifyReturnDate') ) {
+ # FIXME we really need to stop adding more uses of C4::Dates
if ( $return_date_override =~ C4::Dates->regexp('syspref') ) {
+ # note that we've overriden the return date
+ $template->param( return_date_was_overriden => 1);
# Save the original format if we are remembering for this series
$template->param(
return_date_override => $return_date_override,
[% END %]
<!-- Patron is restricted and checkin was backdated -->
-[% IF return_date_override && Borrowers.IsDebarred( borrower ) %]
+[% IF return_date_was_overriden && Borrowers.IsDebarred( borrower ) %]
<div id="restricted_backdated" class="dialog message">
<h3>
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber %]">