From 2104369978b85c0e0e92f88ba229ee3c2c749ece Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 1 Dec 2016 20:11:41 +0000 Subject: [PATCH] Bug 17709 - Article request broken - 'internal server error' Content-Type: text/plain; charset=utf-8 Article requsts from OPAC and from intranet are showing an 'internal server error'. I am testing in 16.11 with Plack. Test Plan: 1) Set circ rule to record only article requests 2) Attempt to place a request on a record with no items 3) Note the error 4) Apply this patch 5) You should now be able to place the request! Signed-off-by: Mirko Tietgen Signed-off-by: Marcel de Rooy --- Koha/Biblio.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm index 934a86a..d9b26b0 100644 --- a/Koha/Biblio.pm +++ b/Koha/Biblio.pm @@ -246,12 +246,12 @@ Returns the itemtype for this record. sub itemtype { my ( $self ) = @_; - return $self->_biblioitem()->itemtype(); + return $self->biblioitem()->itemtype(); } -=head3 _biblioitem +=head3 biblioitem -my $field = $self->_biblioitem()->itemtype +my $field = $self->biblioitem()->itemtype Returns the related Koha::Biblioitem object for this Biblio object -- 2.1.4