Bug 24629: SIP patron items contains an array of hashes
authorNick Clemens <nick@bywatersolutions.com>
Fri, 21 Feb 2020 12:28:30 +0000 (12:28 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 24 Feb 2020 13:18:36 +0000 (13:18 +0000)
commit612887d46fbed7811aed055367ac61f1bfde68f6
tree03ffa224bde71a81ff717e248da18c4890bcf86a
parent721c8bcd18cec819ed35c60949b81cfa5c243f90
Bug 24629: SIP patron items contains an array of hashes

$patron->{items} contains the borrowers checkouts as an array of hashes
{ barcode => $item->barcode }

When printing to log we assumed these were only barcodes

This patch pushes the current checkout as a hash and maps the values retrieved to a string

To test:
1 - Enable SIP debug mode
2 - Perform multiple checkouts for a patron
3 - Note the messages like:
    koha koha_sip_koha[13575]: ILS::Checkout: patron 123 has checked out HASH(0x55a5b187f858), HASH(0x55a5b1896ad0), HASH(0x55a5b18a6cf0), 7826832
4 - Apply patch
5 - Restart all the things
6 - Do some checkouts via SIP
6 - Messages should now have barcodes

Signed-off-by: Magnus Enger <magnus@libriotech.no>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/SIP/ILS.pm