Bugzilla – Attachment 126199 Details for
Bug 29220
Minor fixes and improved code readability in circulation.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29220: Minor fixes and improved code readability
Bug-29220-Minor-fixes-and-improved-code-readabilit.patch (text/plain), 1.61 KB, created by
David Gustafsson
on 2021-10-13 13:40:30 UTC
(
hide
)
Description:
Bug 29220: Minor fixes and improved code readability
Filename:
MIME Type:
Creator:
David Gustafsson
Created:
2021-10-13 13:40:30 UTC
Size:
1.61 KB
patch
obsolete
>From ec9247789425f7e43b1545f009b14a059d4bdf4d Mon Sep 17 00:00:00 2001 >From: David Gustafsson <glasklas@gmail.com> >Date: Wed, 13 Oct 2021 15:36:43 +0200 >Subject: [PATCH] Bug 29220: Minor fixes and improved code readability > >--- > circ/circulation.pl | 18 ++++++++---------- > 1 file changed, 8 insertions(+), 10 deletions(-) > >diff --git a/circ/circulation.pl b/circ/circulation.pl >index 4f6607b9e2..7a63e81211 100755 >--- a/circ/circulation.pl >+++ b/circ/circulation.pl >@@ -372,20 +372,18 @@ if (@$barcodes) { > } > } > >- if ( $error->{DEBT_GUARANTORS} ) { >- $template_params->{DEBT_GUARANTORS} = $error->{DEBT_GUARANTORS}; >+ # Only some errors will block when performing forced onsite checkout, >+ # in any other case all errors block >+ my @blocking_error_codes = ($onsite_checkout and C4::Context->preference("OnSiteCheckoutsForce")) ? >+ qw( UNKNOWN_BARCODE ) : (keys %$error); >+ >+ foreach my $code ( @blocking_error_codes ) { >+ $template_params->{$code} = $error->{$code}; > $template_params->{IMPOSSIBLE} = 1; > $blocker = 1; > } > >- if ( $error->{UNKNOWN_BARCODE} or not $onsite_checkout or not C4::Context->preference("OnSiteCheckoutsForce") ) { >- delete $question->{'DEBT'} if ($debt_confirmed); >- foreach my $impossible ( keys %$error ) { >- $template_params->{$impossible} = $$error{$impossible}; >- $template_params->{IMPOSSIBLE} = 1; >- $blocker = 1; >- } >- } >+ delete $question->{'DEBT'} if ($debt_confirmed); > > if( $item and ( !$blocker or $force_allow_issue ) ){ > my $confirm_required = 0; >-- >2.20.1
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 29220
:
126199
|
126213
|
126214
|
131098
|
131121