]> git.koha-community.org Git - koha.git/commit
Bug 29243: Correct call when adding items from staged records
authorNick Clemens <nick@bywatersolutions.com>
Thu, 14 Oct 2021 11:30:21 +0000 (11:30 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 18 Oct 2021 09:28:41 +0000 (11:28 +0200)
commit66a01d4b47e8e9ce14932a4c28c18f1ef358a6c4
tree7b8d4fc2980fe51fadcdc182417abf6cc04adf36
parent31c2bfae5fc6056acd422ceeb87ab96a50dae23c
Bug 29243: Correct call when adding items from staged records

To test:
1 - Populate system preference  NewItemsDefaultLocation
2 - Stage a file of marc records
3 - Create an acquisitions basket with 'AcqCreateItems' set to 'ordering'
4 - Attempt to add to basket from your staged file
5 - You get a 500 error, and in the logs:
    Can't use string ("") as a HASH ref while "strict refs" in use at /usr/share/koha/lib/C4/Items.pm line 1605.
6 - Apply patch
7 - Repeat #4
8 - Success!

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Items.pm
acqui/addorderiso2709.pl