From 2cf0a7ebe6162abc822bab63feb0f24e80856060 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 27 Mar 2015 10:03:32 +0100 Subject: [PATCH] Bug 6911: Remember search terms in the log viewer tool MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The modules and actions selected by the user are now selected when a log search is done. Note that this patch also add the multiple attribute to the actions select in order to add the ability to select several actions. The code to do that already existed. Test plan: 1/ Go on the log viewer tool (tools/viewlog.pl) 2/ Launch a search with modules and actions selected. 3/ Confirm that the values you have selected is still selected after the search. Patch works as expected. Signed-off-by: Marc Véron Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit b8db092a0acf0c34cd78e35332f73636cdff6e22) Signed-off-by: Chris Cormack Conflicts: tools/viewlog.pl --- .../prog/en/modules/tools/viewlog.tt | 53 ++++++++++++------- tools/viewlog.pl | 6 +-- 2 files changed, 36 insertions(+), 23 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt index 96cac2d1e3..634092fbef 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt @@ -67,24 +67,41 @@ -
  • - - -
  • -
  • - - -
  • +
  • + + +
  • +
  • + + +
  • diff --git a/tools/viewlog.pl b/tools/viewlog.pl index 3555612fbf..23eddc7ce2 100755 --- a/tools/viewlog.pl +++ b/tools/viewlog.pl @@ -191,13 +191,9 @@ if ($do_it) { action => \@actions, info => $info, src => $src, + modules => \@modules, ); - # Used modules - foreach my $module (@modules) { - $template->param( $module => 1 ); - } - output_html_with_http_headers $input, $cookie, $template->output; } else { -- 2.39.5