Test plan:
Go to Home › Tools › Batch item modification
Insert barcodes and continue
=> Without this patch you will get warning in the log
=> With this patch applied you warning does no longer appear
Confirm that the number of holds is correct
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
$this_row{isbn} = $biblio->biblioitem->isbn;
$this_row{biblionumber} = $biblio->biblionumber;
$this_row{holds} = $biblio->holds->count;
- $this_row{item_holds} = Koha::Holds->search( itemnumber => $itemnumber )->count;
+ $this_row{item_holds} = Koha::Holds->search( { itemnumber => $itemnumber } )->count;
if (%this_row) {
push(@big_array, \%this_row);