[open-ils-commits] [GIT] Evergreen ILS branch rel_2_1 updated. 095c9bf1572fae9584ac18c1a1233d275d08b6f2

Evergreen Git git at git.evergreen-ils.org
Tue Jun 7 11:41:38 EDT 2011


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_1 has been updated
       via  095c9bf1572fae9584ac18c1a1233d275d08b6f2 (commit)
      from  218a25fc234cce7e3f8f982291438c65b595c2c2 (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 095c9bf1572fae9584ac18c1a1233d275d08b6f2
Author: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
Date:   Fri Jun 3 15:17:48 2011 -0400

    Prevent future dates of birth in patron editor
    
    The patron editor form allowed staff to enter a date of birth that takes
    place in the future. While it is theoretically conceivable (hah) that
    a library might register patrons that have yet to be born, it is
    unlikely enough that we will not even assign this behavior to an
    org-unit setting, but we will take the bold move of using a regular
    expression to prevent a future dates of birth at all.
    
    Note that if a library system travels into the past, this will cause all
    sorts of problems in the patron editor interface (not to mention
    overdues). Please do not mix Evergreen and time travel.
    
    Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
    Signed-off-by: Dan Scott <dan at coffeecode.net>

diff --git a/Open-ILS/web/js/ui/default/actor/user/register.js b/Open-ILS/web/js/ui/default/actor/user/register.js
index 6915f53..c0afaa6 100644
--- a/Open-ILS/web/js/ui/default/actor/user/register.js
+++ b/Open-ILS/web/js/ui/default/actor/user/register.js
@@ -1005,6 +1005,9 @@ function attachWidgetEvents(fmcls, fmfield, widget) {
                 return;
 
             case 'dob':
+                widget.widget.isValid = function() {
+                    return this.attr("value") < new Date();
+                };
                 dojo.connect(widget.widget, 'onChange',
                     function(newDob) {
                         if(!newDob) return;

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

Summary of changes:
 Open-ILS/web/js/ui/default/actor/user/register.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list