[open-ils-commits] [GIT] Evergreen ILS branch rel_2_12 updated. 63d1d4b41864c0a9e660895dc68d37d8ac728ff2

Evergreen Git git at git.evergreen-ils.org
Mon Jul 24 13:23:55 EDT 2017


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_2_12 has been updated
       via  63d1d4b41864c0a9e660895dc68d37d8ac728ff2 (commit)
      from  79bb12cf4573ff4d1e892efe77f52589907641e9 (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 63d1d4b41864c0a9e660895dc68d37d8ac728ff2
Author: Jason Boyer <jboyer at library.in.gov>
Date:   Fri Jul 7 10:24:35 2017 -0400

    LP1702911: Correct Barcode State in Add Item
    
    When adding an item from the MARC editor the barcode
    state was incorrect because the empty_barcode flag
    is set on the copy and then not changed after
    assigning a barcode. At that point the only way to
    alter the flag is modifying the barcode in the UI,
    which the user likely would not think to do. This
    causes the Save buttons to remain disabled.
    
    To test pre patch:
    Open a record in the MARC editor, check Add Item
    Add a call number label and barcode above, click Save
    In the vol/copy editor, try as you might, you can't save. :(
    
    To test post-patch:
    Open a record in the MARC editor, check Add Item
    Add a call number label and barcode above, click Save
    In the vol/copy editor, the Save buttons will already be enabled
    (barring required stat cats, etc.)
    
    Signed-off-by: Jason Boyer <jboyer at library.in.gov>
    Signed-off-by: Josh Stompro <stomproj at larl.org>
    Signed-off-by: Kathy Lussier <klussier at masslnc.org>

diff --git a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js
index 644be2f..cce204c 100644
--- a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js
+++ b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js
@@ -1207,7 +1207,10 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore ,
                                         ((!$scope.only_vols) ? true : false)
                                     );
 
-                                    if (proto.barcode) cp.barcode( proto.barcode );
+                                    if (proto.barcode) {
+                                        cp.barcode( proto.barcode );
+                                        cp.empty_barcode = false;
+                                    }
 
                                     itemSvc.addCopy(cp)
                                 });
@@ -1254,7 +1257,10 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore ,
                                     true
                                 );
 
-                                if (proto.barcode) cp.barcode( proto.barcode );
+                                if (proto.barcode) {
+                                    cp.barcode( proto.barcode );
+                                    cp.empty_barcode = false;
+                                }
 
                                 itemSvc.addCopy(cp)
                             }

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

Summary of changes:
 .../web/js/ui/default/staff/cat/volcopy/app.js     |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list