From ee805f31188c9d36320e10518988da20c8782477 Mon Sep 17 00:00:00 2001 From: Amit Gupta Date: Fri, 19 Jun 2015 14:55:45 +0530 Subject: [PATCH] Bug 14382 - datepicker's dateFormat setting for reports is missing Report require date in ISO format(yyyy-mm-dd). Test Plan 1. Go to Report module 2. Create report from option (Create report from SQL). 3. Write the sql with date as input filter. 4. Choose the date (Now come in ISO format (yyyy-mm-dd). 5. Run the report. --- .../en/modules/reports/guided_reports_start.tt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index 283a1cf..d12dd67 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -169,6 +169,10 @@ $(document).ready(function(){ }); [% END %] + // redefine the datepicker's default because reports require ISO + // http://jqueryui.com/demos/datepicker/#option-dateFormat + $( ".datepicker" ).datepicker( "option", "dateFormat", "yyyy-mm-dd" ); + [% IF (create || editsql || save) %] $("#select_group").change(function() { if($(this).attr('checked')) { -- 1.7.9.5