Bug 17709 - Article request broken - 'internal server error'
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 1 Dec 2016 20:11:41 +0000 (20:11 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 2 Dec 2016 10:10:47 +0000 (10:10 +0000)
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 <mirko@abunchofthings.net>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Biblio.pm

index 934a86a..d9b26b0 100644 (file)
@@ -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