Bugzilla – Attachment 90479 Details for
Bug 23057
If checked_in_ok is set and item is not checked out, alert flag is supressed for *any* reason
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23057: (QA Follow-up) [ALT PATCH] Handle new ReturnOfLostItemBlocked message in returns.pl
Bug-23057-QA-Follow-up-ALT-PATCH-Handle-new-Return.patch (text/plain), 3.92 KB, created by
Kyle M Hall (khall)
on 2019-06-11 11:43:17 UTC
(
hide
)
Description:
Bug 23057: (QA Follow-up) [ALT PATCH] Handle new ReturnOfLostItemBlocked message in returns.pl
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2019-06-11 11:43:17 UTC
Size:
3.92 KB
patch
obsolete
>From 462e5a7528e81ffa61af191982a8b1689691f2da Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Tue, 11 Jun 2019 07:42:56 -0400 >Subject: [PATCH] Bug 23057: (QA Follow-up) [ALT PATCH] Handle new > ReturnOfLostItemBlocked message in returns.pl > >--- > C4/Circulation.pm | 13 ++++++------- > circ/returns.pl | 5 ++++- > .../prog/en/modules/circ/returns.tt | 16 +++++++--------- > 3 files changed, 17 insertions(+), 17 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 45da90dd2d..f64329ab19 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -1944,11 +1944,6 @@ sub AddReturn { > $doreturn = 0 if C4::Context->preference("BlockReturnOfWithdrawnItems"); > } > >- if ( $item->itemlost and C4::Context->preference("BlockReturnOfLostItems") ) { >- $messages->{'ReturnOfLostItemBlocked'}; >- $doreturn = 0; >- } >- > # case of a return of document (deal with issues and holdingbranch) > if ($doreturn) { > my $is_overdue; >@@ -2011,8 +2006,12 @@ sub AddReturn { > > # fix up the accounts..... > if ( $item->itemlost ) { >- $messages->{'WasLost'} = 1; >- unless ( C4::Context->preference("BlockReturnOfLostItems") ) { >+ if ( C4::Context->preference("BlockReturnOfLostItems") ) { >+ $messages->{'ReturnOfLostItemBlocked'} = 1; >+ $doreturn = 0; >+ } >+ else { >+ $messages->{'WasLost'} = 1; > if ( > Koha::RefundLostItemFeeRules->should_refund( > { >diff --git a/circ/returns.pl b/circ/returns.pl >index 657229a10e..bcb6574db2 100755 >--- a/circ/returns.pl >+++ b/circ/returns.pl >@@ -493,7 +493,10 @@ foreach my $code ( keys %$messages ) { > } > elsif ( $code eq 'WasLost' ) { > $err{waslost} = 1; >- $exit_required_p = 1 if C4::Context->preference("BlockReturnOfLostItems"); >+ } >+ elsif ( $code eq 'ReturnOfLostItemBlocked' ) { >+ $err{ReturnOfLostItemBlocked} = 1; >+ $exit_required_p = 1; > } > elsif ( $code eq 'LostItemFeeRefunded' ) { > $template->param( LostItemFeeRefunded => 1 ); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >index 6277ed8123..c4b3fcb7ef 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >@@ -621,20 +621,18 @@ > <p class="problem">Local use recorded</p> > [% END %] > [% IF ( errmsgloo.waslost ) %] >- [% IF Koha.Preference('BlockReturnOfLostItems') %] >- <p class="problem">Item is lost, cannot be checked in.</p> >- [% ELSE %] >- <p class="problem">Item was lost, now found.</p> >- [% END %] >- [% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %] >+ <p class="problem">Item was lost, now found.</p> >+ [% IF LostItemFeeRefunded %] > <p class="problem">A refund has been applied to the borrowing patron's account.</p> >- [% ELSIF Koha.Preference('BlockReturnOfLostItems') %] >- <h5>Cannot check in</h5> >- <p><strong>NOT CHECKED IN</strong></p> > [% ELSE %] > <p class="problem">Any lost item fees for this item will remain on the patron's account.</p> > [% END %] > [% END %] >+ [% IF ( errmsgloo.ReturnOfLostItemBlocked ) %] >+ <h5>Cannot check in</h5> >+ <p><strong>NOT CHECKED IN</strong></p> >+ <p class="problem">Item is lost.</p> >+ [% END %] > [% IF ( errmsgloo.withdrawn ) %] > [% IF Koha.Preference('BlockReturnOfWithdrawnItems') %] > <h5>Cannot check in</h5> >-- >2.20.1 (Apple Git-117)
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 23057
:
90344
|
90377
|
90384
|
90385
|
90388
|
90479
|
90480
|
90505
|
90506
|
90507
|
90508
|
91322
|
91323
|
91324
|
91325
|
91326
|
91644