[Koha-bugs] [Bug 7134] patron records getting funny birthdays

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 17 20:27:59 CET 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7134

--- Comment #4 from Liz Rea <wizzyrea at gmail.com> 2011-11-17 19:27:59 UTC ---
Created attachment 6330
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=6330
[Signed Off] Bug 7134: patron records getting corrupted birthdates

If no date of birth is provided in a new member form, the borrower gets the
birthdate of "00/02/0", which
is obviously incorrect (the result of passing 0 to the database directly)

The fix is to remove a conditional check buried deep in C4::SQLHelper.  This is
in a helper subroutine that was changed
for the Unified Member Search dev (bug 6253).  Reverting this small change to
the conditional does not seem to break
search, but testing will be required.

To test:
1. apply patch, and create a new patron with blank birthdate.  The new patron
should now have a blank birthdate instead of '00/02/0'
2. search for a borrower by 1 part surname, confirm search works
3. search for a borrower by 2 part surname, confirm search works
4. search for a borrower across firstname AND surname; confirm
5. search for a borrower and include categorycode/branchcode filters

Signed-off-by: Liz Rea <wizzyrea at gmail.com>
I confirm all working tests 1-5
1. Created patron with blank birthdate - birthdate was blank
2. Searched for patron "henry james acevedo III" by using "acevedo" - result
was correct
3. Searched for mr. acevedo using "Acevedo III" - result was correct
4. Searched for Henry James Acevedo III, Henry Acevedo and James Acevedo -
results were correct
5. Searched for Mr Acevedo with the branch he was not in, with the branch he is
in, with a category he was not, and a category he was. All results were
correct.

also noted: inner searching seems to be working now? Example: Henry James
(firstname) Acevedo III (surname) - searching James Acevedo brings back the
correct patron.
Not complaining, just noting. :)

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list