[Koha-bugs] [Bug 17375] Prevent internal software error when searching patron with invalid birth date
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Oct 20 09:37:52 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17375
Lucio Moraes <lmoraes at catalyst.net.nz> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #56025|0 |1
is obsolete| |
--- Comment #9 from Lucio Moraes <lmoraes at catalyst.net.nz> ---
Created attachment 56685
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=56685&action=edit
Bug 17375: Search by dateofbirth - handle invalid dates
Prevent internal software error when searching patron with invalid birth date
To reproduce:
- Go to Home > Patron
- Expand patron search (click on + at the left of the search button)
- In drop down 'Search fields', select 'Date of birth'
- Enter a valid date (e.g. 11.02.1995 if syspref 'dateformat' is set to dmydot)
Result: Search works OK
- Enter an invalid date, e.g. 11.02 or abcd...
Result: Internal server error
- Do a patron search with many results
- Use filter on results screen, select 'Date of birth' as search field and
enter an invalid date to search (e.g. 'a')
Result: Endless message 'Processing'
To test:
- Apply patch
- Repeat steps above
- In both cases, you should get "No results"
Signed-off-by: Marc Véron <veron at veron.ch>
Signed-off-by: Lucio Moraes <lmoraes at catalyst.net.nz>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list