[open-ils-commits] [GIT] Evergreen ILS branch rel_2_2 updated. f1e0d8845dadabd42fb01ad063c38d3d9455fc27
Evergreen Git
git at git.evergreen-ils.org
Wed May 9 09:53:16 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, rel_2_2 has been updated
via f1e0d8845dadabd42fb01ad063c38d3d9455fc27 (commit)
from 4e093729f14085270072ee71d4c0d09b86cfcb52 (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 f1e0d8845dadabd42fb01ad063c38d3d9455fc27
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