From f32693c9ee59e4acb7de7f4b5179b946bbc8bd51 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Mon, 21 Feb 2005 22:21:53 +0000 Subject: [PATCH] bugfix: re-enable HTML::FillInForm to create persistent search using in form which has just "back to search" button. You can use this variable to dump persistant search variables without rm (runmode of CGI::Application) git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@675 13eb9ef6-21d5-0310-b721-a9d68796d827 --- WebPac.pm | 3 +++ template_html/results.html | 1 + 2 files changed, 4 insertions(+) diff --git a/WebPac.pm b/WebPac.pm index 8c2e88e..6d31110 100644 --- a/WebPac.pm +++ b/WebPac.pm @@ -182,14 +182,17 @@ sub make_pager_vars { my $tmpl = shift @_; my @persist_vars = @_; my $hidden_vars = ''; + my $hidden_search = ''; foreach my $v (@persist_vars) { foreach my $val ($q->param($v)) { next if (! $val || $val eq ''); $hidden_vars .= ''."\n"; + $hidden_search .= ''."\n" if ($v ne "rm"); } } $tmpl->param('PAGER_HIDDEN', $hidden_vars); + $tmpl->param('SEARCH_HIDDEN', $hidden_search); $tmpl->param('PAGER_JAVASCRIPT', qq#