[open-ils-commits] [GIT] Evergreen ILS branch master updated. fe4262c7fbbc01f167b04a5916800a62b823c6cd
Evergreen Git
git at git.evergreen-ils.org
Wed May 9 09:51:51 EDT 2012
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 fe4262c7fbbc01f167b04a5916800a62b823c6cd (commit)
from adb03996c78facee9ada612228424ff3dd54a03d (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 fe4262c7fbbc01f167b04a5916800a62b823c6cd
Author: Thomas Berezansky <tsbere at mvlc.org>
Date: Wed May 9 09:08:13 2012 -0400
TPac: Barcodes default to starting with digits
Because otherwise there is likely to be a lot of confusion when barcodes no
longer work, at all, for login when groups have no barcode regex.
Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm
index f41faf8..7791cf8 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm
@@ -349,6 +349,9 @@ sub load_login {
my $bc_regex = $ctx->{get_org_setting}->($org_unit, 'opac.barcode_regex');
+ # To avoid surprises, default to "Barcodes start with digits"
+ $bc_regex = '^\d' unless $bc_regex;
+
$args->{barcode} = delete $args->{username}
if $bc_regex and ($username =~ /$bc_regex/);
-----------------------------------------------------------------------
Summary of changes:
.../src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list