From a6cd65e2fb645e282de1c7be87f97fd478bea1f7 Mon Sep 17 00:00:00 2001 From: Olli-Antti Kivilahti Date: Tue, 25 Aug 2015 11:45:56 +0300 Subject: [PATCH] Bug 14616 - Koha::Object subclasses --- Koha/Checkout.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Checkout.pm b/Koha/Checkout.pm index 9bc365f..49de6cf 100644 --- a/Koha/Checkout.pm +++ b/Koha/Checkout.pm @@ -44,7 +44,7 @@ sub barcode { my ($self) = @_; unless ($self->{item}) { - $self->{item} = $self->_result->item; + $self->{item} = Koha::Items->cast($self->_result->item); } return $self->{item}->barcode; } -- 1.9.1