[open-ils-commits] [GIT] Evergreen ILS branch master updated. 400fa7e97d6fdf99175af39f8f769024f3871bf1

Evergreen Git git at git.evergreen-ils.org
Mon Jun 13 17:19:16 EDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  400fa7e97d6fdf99175af39f8f769024f3871bf1 (commit)
      from  e08a5cbfaa14fcd386f63a5f3e29539e6be3f544 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 400fa7e97d6fdf99175af39f8f769024f3871bf1
Author: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
Date:   Mon Jun 13 16:40:07 2011 -0400

    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 at esilibrary.com>
    Signed-off-by: Dan Wells <dbw2 at calvin.edu>

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 0009ccb..503a2ec 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();

-----------------------------------------------------------------------

Summary of changes:
 .../staff_client/server/serial/batch_receive.js    |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list