From 5632f97523fc6e1cb1cf742c3b030402e9447f36 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 18 Jun 2021 12:36:00 +0200 Subject: [PATCH] Bug 28561: Remove DBIC warning in opac-shelves --- opac/opac-shelves.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opac/opac-shelves.pl b/opac/opac-shelves.pl index 483876188e9..ff50302ddcc 100755 --- a/opac/opac-shelves.pl +++ b/opac/opac-shelves.pl @@ -272,7 +272,8 @@ if ( $op eq 'view' ) { my $contents = $shelf->get_contents->search( {}, { - prefetch => [ { 'biblionumber' => { 'biblioitems' => 'items' } } ], + distinct => 'biblionumber', + join => [ { 'biblionumber' => { 'biblioitems' => 'items' } } ], page => $page, rows => $rows, order_by => { "-$direction" => $order_by }, -- 2.20.1