]> git.koha-community.org Git - koha.git/commit
Bug 27589: Access item fields as hash
authorNick Clemens <nick@bywatersolutions.com>
Thu, 4 Feb 2021 12:00:10 +0000 (12:00 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 12 Feb 2021 12:59:57 +0000 (13:59 +0100)
commit71063a75460023712659b206c3d2c101a4135acc
tree3e23d6265413a1d7cce09b9108ce9a2a40c0e048
parente1f270095e8ac7eb6ffd86e0ec0a64f90c3eb38f
Bug 27589: Access item fields as hash

SIP item stores the item unblessed so field must be accessed as a hashref

This patch changes the code in handle_item_information to match the code in
handle_checkin

To test:
1 - In sip config set the cr_item_field='itype' for a sip account
2 - Restart SIP
3 - Attempt an item information requests using the sip_cli_emulator
     perl misc/sip_cli_emulator.pl -a localhost -p 6001 -su term1 -sp term1 -l CPL -m item_information --item 39999000011791
4 - It fails!
5 - Apply patch and restart
6 - It succeeds!

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 18368d6a0c6b35d91ad80a832435e57144d32b6d)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/SIP/Sip/MsgType.pm