Bugzilla – Attachment 122119 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]
[ALTERNATIVE PATCH] Bug 28561: Remove DBIC warning in opac-shelves
Bug-28561-Remove-DBIC-warning-in-opac-shelves.patch (text/plain), 993 bytes, created by
Jonathan Druart
on 2021-06-18 10:36:29 UTC
(
hide
)
Description:
[ALTERNATIVE PATCH] Bug 28561: Remove DBIC warning in opac-shelves
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-06-18 10:36:29 UTC
Size:
993 bytes
patch
obsolete
>From 5632f97523fc6e1cb1cf742c3b030402e9447f36 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 > >--- > 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
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