Bugzilla – Attachment 104507 Details for
Bug 25220
maxoutstanding syspref should be disabled by a null value
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25220: make maxoutstanding set to null not give warning on opac-user.pl
Bug-25220-make-maxoutstanding-set-to-null-not-give.patch (text/plain), 1.22 KB, created by
Owen Leonard
on 2020-05-07 12:39:00 UTC
(
hide
)
Description:
Bug 25220: make maxoutstanding set to null not give warning on opac-user.pl
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2020-05-07 12:39:00 UTC
Size:
1.22 KB
patch
obsolete
>From dca4fae225e90bd7d5666cfa16df72939c95afa0 Mon Sep 17 00:00:00 2001 >From: Andrew Fuerste-Henry <andrew@bywatersolutions.com> >Date: Tue, 21 Apr 2020 13:56:55 +0000 >Subject: [PATCH] Bug 25220: make maxoutstanding set to null not give warning > on opac-user.pl > >To test: >1) set maxoutstanding to empty >2) give yourself $1 in fine >3) go to your account on OPAC >4) confirm you have message that holds are blocked >5) apply patch, restart_all >6) reload OPAC >7) confirm message is gone >8) set maxoutstanding to $2 >9) reload opac, confirm message is back > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > opac/opac-user.pl | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/opac/opac-user.pl b/opac/opac-user.pl >index 6d967c8803..fb68a7f39e 100755 >--- a/opac/opac-user.pl >+++ b/opac/opac-user.pl >@@ -148,7 +148,8 @@ if ( C4::Context->preference('OpacRenewalAllowed') > } > > my $maxoutstanding = C4::Context->preference('maxoutstanding'); >-if ( $amountoutstanding && ( $amountoutstanding > $maxoutstanding ) ){ >+$maxoutstanding = undef unless looks_like_number ( $maxoutstanding ); >+if ( $amountoutstanding && defined($maxoutstanding) && ( $amountoutstanding > $maxoutstanding ) ){ > $borr->{blockedonfines} = 1; > } > >-- >2.11.0
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 25220
:
103377
|
103378
|
103388
|
104506
| 104507 |
104508