Bugzilla – Attachment 149678 Details for
Bug 33496
Add 'host_items' param to Koha::Biblio->items
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33496: (follow-up) Correct param names
Bug-33496-follow-up-Correct-param-names.patch (text/plain), 1.02 KB, created by
Nick Clemens (kidclamp)
on 2023-04-14 12:47:35 UTC
(
hide
)
Description:
Bug 33496: (follow-up) Correct param names
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2023-04-14 12:47:35 UTC
Size:
1.02 KB
patch
obsolete
>From a9baa7d83d7f7b18019e12a50cad6866fb830f40 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 14 Apr 2023 12:40:55 +0000 >Subject: [PATCH] Bug 33496: (follow-up) Correct param names > >--- > Koha/Biblio.pm | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm >index 66635f8065..9aaf52cc44 100644 >--- a/Koha/Biblio.pm >+++ b/Koha/Biblio.pm >@@ -450,10 +450,10 @@ sub items { > return Koha::Items->_new_from_dbic( $items_rs ) unless $params->{host_items}; > > my $host_itemnumbers = $self->_host_itemnumbers(); >- my $params = { -or => [biblionumber => $self->id] }; >- push @{$params->{'-or'}}, itemnumber => { -in => $host_itemnumbers } if $host_itemnumbers; >+ my $search_params = { -or => [biblionumber => $self->id] }; >+ push @{$search_params->{'-or'}}, itemnumber => { -in => $host_itemnumbers } if $host_itemnumbers; > >- return Koha::Items->search($params); >+ return Koha::Items->search($search_params); > } > > =head3 host_items >-- >2.30.2
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 33496
:
149465
|
149572
|
149678
|
151466
|
151467
|
151468