Fixes an issue which caused an exception to be thrown during non-cat
item checkout in the browser client, preventing the checkout from being
properly displayed in the checkout page, the Items Out list, and on the
receipt.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
row_item[key] = val;
});
- row_item['copy_barcode'] = row_item.acp.barcode();
+ if (row_item.acp) { // unset for non-cat items.
+ row_item['copy_barcode'] = row_item.acp.barcode();
+ }
munge_checkout_resp(co_resp, row_item);
},