Bugzilla – Attachment 164239 Details for
Bug 36317
Koha::Biblio->host_items fails with search_ordered()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36317: Koha::Biblio->host_items must use me.itemnumber
0002-Bug-36317-Koha-Biblio-host_items-must-use-me.itemnum.patch (text/plain), 1.05 KB, created by
Emmi Takkinen
on 2024-04-02 08:35:23 UTC
(
hide
)
Description:
Bug 36317: Koha::Biblio->host_items must use me.itemnumber
Filename:
MIME Type:
Creator:
Emmi Takkinen
Created:
2024-04-02 08:35:23 UTC
Size:
1.05 KB
patch
obsolete
>From 7b18ef913ff985888b6175506a13c970d15568e6 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Thu, 14 Mar 2024 11:24:54 +0100 >Subject: [PATCH 2/2] Bug 36317: Koha::Biblio->host_items must use > me.itemnumber > >Koha::Biblio->host_items fails with search_ordered() because of ambiguous column 'itemnumber' in where clause. >It must use me.itemnumber like in Koha::Biblio->items > >Test plan : >prove t/db_dependent/Koha/Biblio.t > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Emmi Takkinen <emmi.takkinen@koha-suomi.fi> >--- > Koha/Biblio.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm >index 771af6c167..7357439779 100644 >--- a/Koha/Biblio.pm >+++ b/Koha/Biblio.pm >@@ -594,7 +594,7 @@ sub host_items { > > my $host_itemnumbers = $self->_host_itemnumbers; > >- return Koha::Items->search( { itemnumber => { -in => $host_itemnumbers } } ); >+ return Koha::Items->search( { "me.itemnumber" => { -in => $host_itemnumbers } } ); > } > > =head3 _host_itemnumbers >-- >2.34.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 36317
:
163131
|
163155
|
163334
|
163335
|
163338
|
164238
|
164239
|
173432
|
173433