From 400fa7e97d6fdf99175af39f8f769024f3871bf1 Mon Sep 17 00:00:00 2001 From: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com> Date: Mon, 13 Jun 2011 16:40:07 -0400 Subject: [PATCH] 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 <lebbeous@esilibrary.com> Signed-off-by: Dan Wells <dbw2@calvin.edu> --- Open-ILS/xul/staff_client/server/serial/batch_receive.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.11.0