Bugzilla – Attachment 74109 Details for
Bug 20499
Checkout of bad barcode: Internal Server Error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20499: just check if GetItem returns something is enough
Bug-20499-just-check-if-GetItem-returns-something-.patch (text/plain), 898 bytes, created by
Jonathan Druart
on 2018-04-12 15:32:06 UTC
(
hide
)
Description:
Bug 20499: just check if GetItem returns something is enough
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-04-12 15:32:06 UTC
Size:
898 bytes
patch
obsolete
>From 0dba193d7fc44f7461f96652017fa4d6e060f5ea Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 12 Apr 2018 12:31:28 -0300 >Subject: [PATCH] Bug 20499: just check if GetItem returns something is enough > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > C4/Circulation.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 369d4a2f98..98498b81ff 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -670,7 +670,7 @@ sub CanBookBeIssued { > > my $item = GetItem(undef, $barcode ); > # MANDATORY CHECKS - unless item exists, nothing else matters >- unless ( $item->{barcode} ) { >+ unless ( $item ) { > $issuingimpossible{UNKNOWN_BARCODE} = 1; > } > return ( \%issuingimpossible, \%needsconfirmation ) if %issuingimpossible; >-- >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 20499
:
73439
|
73440
|
73442
|
74107
|
74108
|
74109
|
74144
|
74145
|
74146