LP1714512: Patron Edit Barcode Validation
authorJason Boyer <jboyer@library.in.gov>
Fri, 1 Sep 2017 13:49:36 +0000 (09:49 -0400)
committerKathy Lussier <klussier@masslnc.org>
Fri, 1 Sep 2017 21:41:15 +0000 (17:41 -0400)
There are 2 barcode related regular expression OUS
but the web user editor is using the wrong one.
This branch corrects that.

Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js

index 61d3f58..d68d950 100644 (file)
@@ -1062,9 +1062,9 @@ angular.module('egCoreMod')
                 new RegExp(service.org_settings['opac.username_regex']);
         }
 
-        if (service.org_settings['opac.barcode_regex']) {
+        if (service.org_settings['ui.patron.edit.ac.barcode.regex']) {
             patterns.ac.barcode = 
-                new RegExp(service.org_settings['opac.barcode_regex']);
+                new RegExp(service.org_settings['ui.patron.edit.ac.barcode.regex']);
         }
 
         if (service.org_settings['global.password_regex']) {