From 51936eb07926864a8ec2a8636215c90297accc54 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 17 Apr 2015 15:24:36 +0200 Subject: [PATCH] Bug 14008: Display active filters when searching for reports On the saved report list, the filters on the left are not displayed. It means that some can be set, but the user has not visible feedbacks. How filters work here: If a user set a filter, it is saved in the session. Next time he will come on this search, the previous values will be kept. This patch just displayed the filter's values in the input fields. Test plan: Search for reports by date, author and keyword. The filters should be displayed after you have clicked on the submit button ("Apply filter"). Signed-off-by: Mark Tompsett Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit b05cbc415d2461a3909db593b9b12d5cc506e35d) Signed-off-by: Chris Cormack --- .../prog/en/modules/reports/guided_reports_start.tt | 9 +++------ reports/guided_reports.pl | 1 + 2 files changed, 4 insertions(+), 6 deletions(-) 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 d2420a022d..98cc1ffa58 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 @@ -167,9 +167,6 @@ $(document).ready(function(){ } }); [% END %] - // redefine the datepicker's default because reports require ISO - // http://jqueryui.com/demos/datepicker/#option-dateFormat - $( ".datepicker" ).datepicker( "option", "dateFormat", "yy-mm-dd" ); [% IF (create || editsql || save) %] $("#select_group").change(function() { @@ -1025,12 +1022,12 @@ Sub report: +
  • [% INCLUDE 'date-format.inc' %]
  • -
  • -
  • +
  • +
  • diff --git a/reports/guided_reports.pl b/reports/guided_reports.pl index c7cf84f94f..de698ef2d6 100755 --- a/reports/guided_reports.pl +++ b/reports/guided_reports.pl @@ -106,6 +106,7 @@ elsif ( $phase eq 'Build new' ) { 'savedreports' => get_saved_reports($filter), 'usecache' => $usecache, 'groups_with_subgroups'=> groups_with_subgroups($group, $subgroup), + filters => $filter, ); } -- 2.20.1