Bug 17709 - Article request broken - 'internal server error'

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>
This commit is contained in:
Kyle Hall 2016-12-01 20:11:41 +00:00
parent 9191246b87
commit 13bffe7347

View 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