Bug 32674: Fix placing a hold at the OPAC for serials
Placing a hold at the OPAC explodes with a 500 when the record is a
serial
DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Column 'biblionumber' in where clause is ambiguous at /usr/share/koha/lib/Koha/Objects.pm line 394
Test plan:
* Create a serial subscription for an existing bibliographic record
* Place a hold on this record at the OPAC
Signed-off-by: Janusz Kaczmarek <januszop@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit f25893a2ba
)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
This commit is contained in:
parent
780d51e75e
commit
7282cd87eb
1 changed files with 1 additions and 1 deletions
|
@ -335,7 +335,7 @@ foreach my $biblioNumber (@biblionumbers) {
|
|||
|
||||
my $items = Koha::Items->search_ordered(
|
||||
[
|
||||
biblionumber => $biblioNumber,
|
||||
'me.biblionumber' => $biblioNumber,
|
||||
'me.itemnumber' => {
|
||||
-in => [
|
||||
$biblio->host_items->get_column('itemnumber')
|
||||
|
|
Loading…
Reference in a new issue