Lines 319-325
sub items {
Link Here
|
319 |
# There is no FK on items (may have been deleted) |
319 |
# There is no FK on items (may have been deleted) |
320 |
my $items_rs = $self->_result->aqorders_items; |
320 |
my $items_rs = $self->_result->aqorders_items; |
321 |
my @itemnumbers = $items_rs->get_column( 'itemnumber' )->all; |
321 |
my @itemnumbers = $items_rs->get_column( 'itemnumber' )->all; |
322 |
return Koha::Items->search({ itemnumber => \@itemnumbers }); |
322 |
return scalar Koha::Items->search({ itemnumber => \@itemnumbers }); # forcing scalar context for 21.11 prevents crash |
323 |
} |
323 |
} |
324 |
|
324 |
|
325 |
=head3 biblio |
325 |
=head3 biblio |
326 |
- |
|
|