In reserve/request.pl, the code querying ItemsAnyAvailableAndNotRestricted (previously ItemsAnyAvailableForHold) is passing the biblioitemnumber as a value to a specified biblionumber. ItemsAnyAvailableAndNotRestricted( { biblionumber => $biblioitemnumber, patron => $patron }) All you need is a Koha instance where the values of biblionumber and biblioitemnumber being different for this to break. And break badly. This occurs in 20.05+
Created attachment 120800 [details] [review] Bug 28310: request.pl using biblioitemnumber in biblionumber field In reserve/request.pl, the code querying ItemsAnyAvailableAndNotRestricted (previously ItemsAnyAvailableForHold) is passing the biblioitemnumber as a value to a specified biblionumber. >> ItemsAnyAvailableAndNotRestricted( { biblionumber => $biblioitemnumber, patron => $patron }) All you need is a Koha instance where the values of biblionumber and biblioitemnumber are not synchronized for this to break. And break badly.
Is this a duplicate of Bug 28057?
As Owen said, duplicate *** This bug has been marked as a duplicate of bug 28057 ***