[OPEN-ILS-DEV] Small 1.6 RC1 bug - unexpected result when attempting to register patron with invalid birthdate
Galen Charlton
gmc at esilibrary.com
Wed Sep 23 08:26:05 EDT 2009
Hi,
Small glitch that one of our customers ran across - they actually
found it in 1.4.0.4, but I was able to reproduce it in 1.6RC1. I
assume Jason or somebody else can fix this in five minutes, but if
nobody picks it up in the next couple days, I might try my hand at a
fix.
Summary:
If you enter an invalid birth date when registering a new patron,
e.g., 1971-11-31 (November has only 30 days), the client gives you an
alert warning you that the date "in the future or invalid". However,
if you ignore that and try to save the record anyway, you get an alert
box with a stacktrace warning.
How to reproduce:
1. Start registering a new patron.
2. Set the birthdate to an invalid date such as 1971-11-31.
3. Dismiss the dialog box that pops up after you enter the invalid
birth date.
4. Fill in the rest of the required fields.
5. Save the new record.
Current results:
You get a DATABASE_UPDATE_FAILED alert with a stacktrace.
Expected results:
The staff client should treat an invalid date like it does a missing
mandatory field and not allow the staff operator to save the patron
record until the error is cleared. The warning message should also be
tweaked to making it clear that the date is out of range, as otherwise
a staff member may read the current message, think that 1971-11-31 is
a YYYY-MM-DD date, and ignore it.
[Note: this is also Equinox case 2811].
Regards,
Galen
--
Galen Charlton
VP, Data Services
Equinox Software, Inc. / The Evergreen Experts
email: gmc at esilibrary.com
direct: +1 352-215-7548
skype: gmcharlt
web: http://www.esilibrary.com/
More information about the Open-ils-dev
mailing list