Browse Source

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>
23.05.x
Jonathan Druart 1 year ago
committed by Tomas Cohen Arazi
parent
commit
f25893a2ba
Signed by: tomascohen GPG Key ID: 0A272EA1B2F3C15F
  1. 2
      opac/opac-reserve.pl

2
opac/opac-reserve.pl

@ -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…
Cancel
Save