Bugzilla – Attachment 122215 Details for
Bug 28561
Order_by triggers a DBIx warning Unable to properly collapse has_many results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28561: Remove DBIC warning in opac-shelves
Bug-28561-Remove-DBIC-warning-in-opac-shelves.patch (text/plain), 1.06 KB, created by
Marcel de Rooy
on 2021-06-21 10:00:46 UTC
(
hide
)
Description:
Bug 28561: Remove DBIC warning in opac-shelves
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2021-06-21 10:00:46 UTC
Size:
1.06 KB
patch
obsolete
>From 9ecca260ac3fa0bd029268cff4513fabf8d76dd0 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 18 Jun 2021 12:36:00 +0200 >Subject: [PATCH] Bug 28561: Remove DBIC warning in opac-shelves >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > 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 483876188e..ff50302ddc 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28561
:
121912
|
121913
|
122119
|
122215
|
122743
|
122744