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> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> (cherry picked from commita9964bc8a9) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit405ddad65b) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
8f9f6ffcdf
commit
7fb5f6bad7
|
|
@ -595,7 +595,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
|
||||
|
|
|
|||
Loading…
Reference in New Issue