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:39:59 +0000 (17:39 -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 92c4a5f..91e6067 100644 (file)
@@ -1079,9 +1079,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']) {