Bugzilla – Attachment 122744 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.08 KB, created by
Nick Clemens (kidclamp)
on 2021-07-09 13:19:19 UTC
(
hide
)
Description:
Bug 28561: Remove DBIC warning in opac-shelves
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2021-07-09 13:19:19 UTC
Size:
1.08 KB
patch
obsolete
>From 22b206903721a8a264249e3e698800e1dbd07a39 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 > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > 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 87de84acb3..8fa4fb7274 100755 >--- a/opac/opac-shelves.pl >+++ b/opac/opac-shelves.pl >@@ -274,7 +274,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