Merge branch 'master' of git.evergreen-ils.org:Evergreen
[evergreen-equinox.git] / Open-ILS / xul / staff_client / server / cat / volume_copy_creator.js
index 9656044..1aea205 100644 (file)
@@ -875,6 +875,9 @@ g.gather_copies = function() {
 
         for (var i = 0; i < barcodes.length; i++) {
             var acp_id = barcodes[i].getAttribute('acp_id') || g.new_acp_id--;
+            if (acp_id < 0) {
+                barcodes[i].setAttribute('acp_id',acp_id);
+            }
             var ou_id = barcodes[i].getAttribute('ou_id');
             var callnumber_composite_key = barcodes[i].getAttribute('callkey');
             var barcode = barcodes[i].value;