From 4bd5bedf6dbc2e7670ddfedfbfebcb98787e9220 Mon Sep 17 00:00:00 2001 From: phasefx Date: Tue, 9 Mar 2010 17:09:29 +0000 Subject: [PATCH] forgot this safety net git-svn-id: svn://svn.open-ils.org/ILS/trunk@15766 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js b/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js index cefba17004..66e417236e 100644 --- a/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js +++ b/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js @@ -384,6 +384,8 @@ g.generate_barcodes = function() { if (nodes.length < 1) { return; } var first_barcode = nodes[0].value; + if (! first_barcode) { return; } + var barcodes = g.network.simple_request( 'AUTOGENERATE_BARCODES', [ ses(), first_barcode, nodes.length - 1 ] -- 2.11.0