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

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

Return to bug 22701