Koha-clms/svc
Jonathan Druart 0d9e1667bf 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@veron.ch>
Signed-off-by: Lucio Moraes <lmoraes@catalyst.net.nz>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 9b34b07d62)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2016-11-02 17:58:26 +00:00
..
cataloguing Bug 11559: Rancor: advanced cataloging interface 2015-10-27 12:17:39 -03:00
config Bug 16508: Updating a syspref requires parameters_remaining_permissions 2016-06-15 08:16:15 +02:00
hold Bug 14310 [QA Followup] - Use output_with_http_headers, return 403s 2016-01-27 06:20:19 +00:00
members Bug 17375: Search by dateofbirth - handle invalid dates 2016-11-02 17:58:26 +00:00
records Bug 15380: Move Koha::Authority to Koha::MetadataRecord::Authority 2015-12-31 18:50:41 +00:00
virtualshelves Bug 16476: Do not call CGI->param in list context, some more 2016-05-16 17:11:46 +00:00
authentication Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
barcode Bug 13545 [QA Followup] - Complete POD documentation 2015-02-13 13:48:45 -03:00
bib Bug 11559: Supporting changes for Rancor 2015-10-27 12:16:05 -03:00
bib_profile Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
checkin Bug 13330 - All overdue items with fines returned via checkouts table will have fines forgiven! 2014-11-25 15:25:14 -03:00
checkouts Bug 16154: Fix some other occurrences 2016-04-26 23:16:44 +00:00
cover_images Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
holds Bug 15533 [QA Followup] - Itemtype limit missing from tables 2016-04-29 10:26:04 +00:00
import_bib Bug 16154: CGI->multi_param - Manual changes 2016-04-26 23:16:43 +00:00
letters Bug 13215: The same letter code can be used for several libraries 2014-11-27 11:42:14 -03:00
localization Bug 15477: (follow-up) Bug 14100: Better errors handling 2016-01-12 16:13:41 +00:00
new_bib Bug 11559: (QA followup) fix several small issues 2015-10-27 12:25:01 -03:00
renew Bug 16154: Fix some other occurrences 2016-04-26 23:16:44 +00:00
report Bug 13880 - Allow svc/report to be passed sql parameters 2015-04-22 11:48:40 -03:00