Bugzilla – Attachment 50892 Details for
Bug 16356
[3.22] Error 500 when returning an item which itemtype is not defined in ItemTypes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16356: Fix Error 500 when returning an item which itemtype is not in itemtypes table
Bug-16356-Fix-Error-500-when-returning-an-item-whi.patch (text/plain), 1.14 KB, created by
Kyle M Hall (khall)
on 2016-04-28 10:22:49 UTC
(
hide
)
Description:
Bug 16356: Fix Error 500 when returning an item which itemtype is not in itemtypes table
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2016-04-28 10:22:49 UTC
Size:
1.14 KB
patch
obsolete
>From b9249a723e279ab90d393e2f7a3c957df527a006 Mon Sep 17 00:00:00 2001 >From: Sophie Meynieux <sophie.meynieux@biblibre.com> >Date: Tue, 26 Apr 2016 18:04:45 +0200 >Subject: [PATCH] Bug 16356: Fix Error 500 when returning an item which > itemtype is not in itemtypes table > > Test plan : > * Find an item with itemtype (itype or bilbioitems.itemtype > depending on syspref) does not exist in itemtypes table > * If necessary, change itemtype of one of your item > * Check out this item > * Try to check it in, you've got a 500 Error and item is not > returned > > With the patch > * Try to check your item in. Item is correctly returned > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > C4/ItemType.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/C4/ItemType.pm b/C4/ItemType.pm >index 209a77d..8efa81e 100644 >--- a/C4/ItemType.pm >+++ b/C4/ItemType.pm >@@ -116,6 +116,7 @@ sub get { > my $data = $dbh->selectrow_hashref( > "SELECT * FROM itemtypes WHERE itemtype = ?", undef, $itemtype > ); >+ return unless defined $data; > return $class->new($data); > } > >-- >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 16356
:
50728
|
50731
| 50892