]> git.koha-community.org Git - koha.git/commit
Bug 31143: Work around subtracting datetime if date_of_birth undef
authorPedro Amorim <pedro.amorim@ptfs-europe.com>
Tue, 6 Aug 2024 09:41:32 +0000 (09:41 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Wed, 23 Oct 2024 18:02:19 +0000 (20:02 +0200)
commite048144d80097f45f43475f5730acbee328110cc
tree37e5eaad15db8ab759fca0371350638ee5ff5ca1
parent9c1ce18c17c435cd01338b7c398f63674e6946db
Bug 31143: Work around subtracting datetime if date_of_birth undef

To test:
1) Run the following SQL:
update borrowers set dateofbirth = '0000-00-00' where borrowernumber = 45;
2) Access the borrower edit page through staff UI:
http://localhost:8081/cgi-bin/koha/members/memberentry.pl?op=edit_form&destination=circ&borrowernumber=45
3) Notice you get an error
4) Run the script:
perl misc/maintenance/search_for_data_inconsistencies.pl
5) Notice you get an error
6) Apply patch restart plack and repeat -> no errors

This is not perfect but its all I have time for, for now. Follow-ups are welcomed as always.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/Patron.pm