View | Details | Raw Unified | Return to bug 22701
Collapse All | Expand All

(-)a/Koha/Biblio.pm (-3 / +5 lines)
Lines 361-369 or list of Koha::Item objects in list context. Link Here
361
sub items {
361
sub items {
362
    my ($self) = @_;
362
    my ($self) = @_;
363
363
364
    $self->{_items} ||= Koha::Items->search( { biblionumber => $self->biblionumber() } );
364
    my $items_rs = $self->_result->items;
365
365
366
    return wantarray ? $self->{_items}->as_list : $self->{_items};
366
    return
367
        wantarray
368
        ? Koha::Items->_new_from_dbic($items_rs)->as_list
369
        : Koha::Items->_new_from_dbic($items_rs);
367
}
370
}
368
371
369
=head3 itemtype
372
=head3 itemtype
370
- 

Return to bug 22701