[open-ils-commits] [GIT] Evergreen ILS branch rel_3_0 updated. c070bf2c62781536fac04c3bb9d18fbd99fe2d99

Evergreen Git git at git.evergreen-ils.org
Thu Jan 25 14:24:52 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, rel_3_0 has been updated
       via  c070bf2c62781536fac04c3bb9d18fbd99fe2d99 (commit)
      from  b23085e033245e27b3f944f2cbd6fd243ae1e89d (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 c070bf2c62781536fac04c3bb9d18fbd99fe2d99
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 cdf2875..0b8d418 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