https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17933
Dobrica Pavlinusic <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #59733|0 |1 is obsolete| | --- Comment #13 from Dobrica Pavlinusic <[email protected]> --- Created attachment 59734 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59734&action=edit Bug 17933 - Internal software error when searching patron without birth date When patrons don't have date of birth (which is not required) patron search results on moremember page produce internal server error since we can't convert MySQL invalid date 0000-00-00 to datetime object and call strfdate on it. Additionally, since we assign dates to template variables and after than assign whole $data hash to template, later assigment overrides previous one, so we see birth date field even for patrons which don't have one. This patch fixes both of those problems. Test: 1. edit patron and remove it's birth date 2. try to search for it, and verify server error 3. apply patch 4. repeat search for patron and verify that it works and doesn't have enpty birth date field Signed-off-by: Grace McKenzie <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
