From: Lebbeous Fogle-Weekley Date: Mon, 13 Jun 2011 20:40:07 +0000 (-0400) Subject: Fix a serial batch receive problem reported by Sally Fortin X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=400fa7e97d6fdf99175af39f8f769024f3871bf1;p=evergreen%2Ftadl.git Fix a serial batch receive problem reported by Sally Fortin That prevents receiving items when not using units in some cases. Signed-off-by: Lebbeous Fogle-Weekley Signed-off-by: Dan Wells --- diff --git a/Open-ILS/xul/staff_client/server/serial/batch_receive.js b/Open-ILS/xul/staff_client/server/serial/batch_receive.js index 0009ccb529..503a2ec770 100644 --- a/Open-ILS/xul/staff_client/server/serial/batch_receive.js +++ b/Open-ILS/xul/staff_client/server/serial/batch_receive.js @@ -996,7 +996,8 @@ function BatchReceiver() { * they start or end in spaces, we'll unintentionally create * a new, different CN if we trim that */ var cn_string = this._row_field_value(id, "call_number"); - var barcode = this._row_field_value(id, "barcode").trim(); + var barcode = this._row_field_value(id, "barcode"); + if (barcode && barcode.trim) barcode = barcode.trim(); if (barcode && cn_string.length) { var unit = new sunit();