forgot this safety net
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 9 Mar 2010 17:09:29 +0000 (17:09 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 9 Mar 2010 17:09:29 +0000 (17:09 +0000)
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

index cefba17..66e4172 100644 (file)
@@ -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 ]