Nick Clemens
08c6e629de
When validating dates in JavaScript it is acceptable to have single digit days or months e.g,: 2011-6-16 When parsing in Koha::DateUtils->dt_from_string we die on these This patch uses JS to set the datepicker which normalizes the date as Koha expects To test: 1 - Add new patron 2 - Enter birthdate as 2/11/1986 3 - Complete required fields 4 - Save 5 - Get ISE The given date (2/11/1986) does not match the date format (us) at /kohadevbox/koha/Koha/DateUtils.pm line 175 6 - Apply patch 7 - Repeat 1-2 8 - Note that when you change focus (click on another field) the date is formatted as '02/11/1986' 9 - Save patron, success! 10 - Edit patron, try setting DOB to 2/1/1986 11 - Change focus and note date is formatted as '02/01/1986', save 12 - Repeat with other settings of system preference 'dateformat' Signed-off-by: Donna <donna@bywatersolutions.com> Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi> Bug 27937: (QA follow-up) Fix indentation Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> |
||
---|---|---|
.. | ||
pages | ||
acq.js | ||
acquisitions-menu.js | ||
additem.js | ||
addorderiso2709.js | ||
admin-menu.js | ||
ajax.js | ||
audio_alerts.js | ||
auth-finder-search.js | ||
automatic_item_modification_by_age.js | ||
background-job-progressbar.js | ||
basket.js | ||
basketgroup.js | ||
biblio_framework.js | ||
calendar.js | ||
cart.js | ||
cashup_modal.js | ||
catalog.js | ||
cataloging.js | ||
cataloging_additem.js | ||
categories.js | ||
charts.js | ||
checkouts.js | ||
circ-patron-search-results.js | ||
datatables.js | ||
desk_selection.js | ||
elasticsearch-mappings.js | ||
file-upload.js | ||
funds_sorts.js | ||
holds.js | ||
ill-availability-partner.js | ||
ill-availability.js | ||
ill-list-table.js | ||
item_search_fields.js | ||
letter.js | ||
localcovers.js | ||
mana.js | ||
marc_modification_templates.js | ||
marc_subfields_structure.js | ||
members-menu.js | ||
members.js | ||
merge-record.js | ||
messaging-preference-form.js | ||
offlinecirc.js | ||
onboarding.js | ||
register_selection.js | ||
rotating-collections.js | ||
select2.js | ||
serials-toolbar.js | ||
showpredictionpattern.js | ||
sms_providers.js | ||
staff-global.js | ||
subscription-add.js | ||
table_filters.js | ||
tools-menu.js | ||
viewlog.js | ||
xmlControlfield.js | ||
z3950_search.js |