[open-ils-commits] [GIT] Evergreen ILS branch master updated. 982d999ccd391abf811f2cc4fbb0f7108b5f5fc1

Evergreen Git git at git.evergreen-ils.org
Thu Jan 25 14:25:13 EST 2018


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  982d999ccd391abf811f2cc4fbb0f7108b5f5fc1 (commit)
      from  d05def6ecadb234933a1c50ba5489f63ee42173a (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 982d999ccd391abf811f2cc4fbb0f7108b5f5fc1
Author: Bill Erickson <berickxx at gmail.com>
Date:   Tue Jan 23 17:56:51 2018 -0500

    LP#1743608 Replace barcode discards NULL/accidental entries
    
    When replacing a patron's barcode in the patron editor, discard any
    previous replacement attempts done in the current edit session.  This
    prevents cases where secondary, etc. replacement cards are accidentally
    created or NULL cards that result in ugly error messages.
    
    Signed-off-by: Bill Erickson <berickxx at gmail.com>
    Signed-off-by: Chris Sharp <csharp at georgialibraries.org>

diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js b/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js
index b80e307..8b389ae 100644
--- a/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js
+++ b/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js
@@ -1449,6 +1449,11 @@ function($scope , $routeParams , $q , $uibModal , $window , egCore ,
         new_card.active = true;
         new_card._primary = 'on';
         $scope.patron.card = new_card;
+
+        // Remove any previous attempts to replace the card, since they
+        // may be incomplete or created by accident.
+        $scope.patron.cards =
+            $scope.patron.cards.filter(function(c) {return !c.isnew})
         $scope.patron.cards.push(new_card);
     }
 

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

Summary of changes:
 .../web/js/ui/default/staff/circ/patron/regctl.js  |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list