Bugzilla – Attachment 74146 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), 989 bytes, created by
Marcel de Rooy
on 2018-04-13 08:16:09 UTC
(
hide
)
Description:
Bug 20499: just check if GetItem returns something is enough
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2018-04-13 08:16:09 UTC
Size:
989 bytes
patch
obsolete
>From 4cf9ed37e8b9be39ece06c950dc6f56f71d8e30f 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 >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > C4/Circulation.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 369d4a2..98498b8 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.1.4
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