From 91d838f48e5931d1e599a7473a9ffce9dbedad47 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 7 Aug 2018 15:00:12 -0400 Subject: [PATCH] LP#1747512 Non-cat checkout fix display/print 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 Signed-off-by: Chris Sharp --- Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js b/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js index 99b001cdaf..cdb944c97e 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js @@ -213,7 +213,9 @@ function($scope , $q , $routeParams , egCore , egUser , patronSvc , 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); }, -- 2.11.0