]> git.koha-community.org Git - koha.git/commit
bug 2284: ModMember can erase the dateofbirth field
authorAndrew Moore <andrew.moore@liblime.com>
Thu, 10 Jul 2008 14:32:56 +0000 (09:32 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Thu, 10 Jul 2008 14:40:46 +0000 (09:40 -0500)
commit15ca4bd8fa59763eda60501c8a1e1bec429b6633
treef675c9f816db518be47261cd475bdc46cb02bedd
parentb14eb8f093d8eb4126afcc319be22434fc6b8221
bug 2284: ModMember can erase the dateofbirth field

patch to C4::Members::ModMember to prevent it from deleting the dateofbirth field when none is supplied.

I also added a KohaTest::random_date method to help generate randomish dates for the test suite.
Added some tests for Member::ModMember. This is an easy method to test, and this bug shows that it
could use some closer examiniation.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Members.pm
t/lib/KohaTest.pm
t/lib/KohaTest/Members/ModMember.pm [new file with mode: 0644]