Bug 24106: In returns.pl, don't search for item if no barcode is provided
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 25 Nov 2019 18:18:16 +0000 (13:18 -0500)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 13 Dec 2019 14:03:52 +0000 (14:03 +0000)
commit916bb2a2b888873d3ace0aa9ff8aeda89c722b24
treed5aa060f54010344df7fcaeb7ae2474b897b100c
parent6ca1330e0dedd28bd0ea3808a7a0536085ba35a6
Bug 24106: In returns.pl, don't search for item if no barcode is provided

When loading returns.pl, code to check rotating collections fires off an search for items by barcode, but doesn't check for a barcode first. This means the code will search for items where barcode is NULL, which is definitely not the intended function.

Test Plan:
1) Apply this patch
2) Set up a rotating collection with items
3) Transfer the collection
4) Check in a rotating collection item
5) Note no change in functionality

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
circ/returns.pl