From 21a0be32de938b874f39f2696f753de62fa47da5 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 --- .../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 d2420a0..98cc1ff 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 a3009b2..435e53e 100755 --- a/reports/guided_reports.pl +++ b/reports/guided_reports.pl @@ -107,6 +107,7 @@ elsif ( $phase eq 'Build new' ) { 'savedreports' => get_saved_reports($filter), 'usecache' => $usecache, 'groups_with_subgroups'=> groups_with_subgroups($group, $subgroup), + filters => $filter, ); } -- 1.9.1