Bug 10694: (follow-up) display the note about restricted patrons consistently
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>
This commit is contained in:
parent
9ab9686250
commit
81064f4e2a
|
|
@ -192,8 +192,11 @@ my $return_date_override_remember =
|
|||
$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,
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ $(document).ready(function () {
|
|||
[% 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 %]">
|
||||
|
|
|
|||
Loading…
Reference in New Issue