Koha/koha-tmpl/intranet-tmpl/prog/js
Nick Clemens 08c6e629de Bug 27937: Set datepicker when date is valid
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>
2021-04-01 18:04:47 +02:00
..
pages Bug 27751: Phase out jquery.cookie.js: Batch item modifications 2021-03-09 15:05:30 +01:00
acq.js
acquisitions-menu.js
additem.js Bug 25353: Correct eslint errors in additems.js 2020-10-26 00:14:42 +01:00
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 Bug 27754: Correct eslint errors in basket.js 2021-03-01 11:28:03 +01:00
basketgroup.js
biblio_framework.js
calendar.js Bug 27937: Set datepicker when date is valid 2021-04-01 18:04:47 +02:00
cart.js Bug 26439: (QA follow-up) Correct MSG instances in cart.js 2020-11-04 12:59:34 +01:00
cashup_modal.js Bug 26274: Update register.tt to use the API 2021-02-12 12:33:41 +01:00
catalog.js Bug 26707: Split cart and lists button on bibliographic detail pages 2021-01-04 16:31:29 +01:00
cataloging.js Bug 27508: do nothing if tag label elements don't exist 2021-01-27 10:45:54 +01:00
cataloging_additem.js
categories.js
charts.js
checkouts.js Bug 26208: Perform batch checkin/renewals serially rather than asynchronously 2021-02-23 13:07:45 +01:00
circ-patron-search-results.js
datatables.js Bug 27807: (QA follow-up) Unique values only 2021-04-01 17:58:49 +02:00
desk_selection.js
elasticsearch-mappings.js Bug 27682: (follow-up) Make sure table is drawn with correct width 2021-03-09 15:05:25 +01:00
file-upload.js
funds_sorts.js
holds.js Bug 27016: Make the pickup locations dropdowns use Select2 2021-01-04 16:33:15 +01:00
ill-availability-partner.js
ill-availability.js
ill-list-table.js Bug 25614: Move ILL request keyword filter to sidebar 2021-01-27 10:45:54 +01:00
item_search_fields.js
letter.js Bug 26602: (QA follow-up) Cleanup datatables settings 2021-02-08 14:56:00 +01:00
localcovers.js
mana.js
marc_modification_templates.js
marc_subfields_structure.js Bug 8976: Add the ability to sort subfields for the MARC frameworks 2021-03-01 15:14:22 +01:00
members-menu.js Bug 12224: Print a slip of borrower's checkins for today 2021-03-05 13:49:03 +01:00
members.js Bug 27430: Change password minimum value hint when patron category is changed 2021-02-01 16:36:38 +01:00
merge-record.js
messaging-preference-form.js
offlinecirc.js
onboarding.js
register_selection.js Bug 24786: Allow selection of cash register at login 2020-11-06 15:39:59 +01:00
rotating-collections.js
select2.js Bug 27124: JS error "select2Width is not defined" 2020-12-21 10:07:40 +01:00
serials-toolbar.js
showpredictionpattern.js
sms_providers.js
staff-global.js Bug 27930: Move _escape_* from acqui/parcel.tt to js/staff-global.js 2021-03-11 16:30:56 +01:00
subscription-add.js
table_filters.js
tools-menu.js
viewlog.js Bug 26572: (QA follow-up) Escape strings in autocomplete 2020-11-04 12:59:34 +01:00
xmlControlfield.js
z3950_search.js Bug 23302: Less clicks on Z3950 search results 2021-01-27 14:36:26 +01:00