From: Bill Erickson Date: Tue, 7 Aug 2018 19:00:12 +0000 (-0400) Subject: LP#1747512 Non-cat checkout fix display/print X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=91d838f48e5931d1e599a7473a9ffce9dbedad47;p=evergreen%2Fequinox.git 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 --- 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); },