diff --git a/Koha/Items.pm b/Koha/Items.pm index 4089068b34..ac7b226c4e 100644 --- a/Koha/Items.pm +++ b/Koha/Items.pm @@ -450,7 +450,7 @@ sub search_ordered { $self = $self->search($params, $attributes); - my @biblionumbers = uniq $self->get_column('biblionumber'); + my @biblionumbers = uniq $self->search(undef,{distinct=>1})->get_column('biblionumber'); if ( scalar ( @biblionumbers ) == 1 && Koha::Biblios->find( $biblionumbers[0] )->serial )