From c4713436b68fcaad7f7f14ace8d28aefb820a1e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 23 Apr 2012 17:21:33 +0200 Subject: [PATCH] =?utf8?q?filter=5Fprefix=20f=C3=BCr=20CVar->render=5Fsear?= =?utf8?q?ch=5Foptions?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/CVar.pm | 1 + templates/webpages/amcvar/search_filter.html | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/SL/CVar.pm b/SL/CVar.pm index 6d04f35a9..714744a1a 100644 --- a/SL/CVar.pm +++ b/SL/CVar.pm @@ -402,6 +402,7 @@ sub render_search_options { $params{include_prefix} = 'l_' unless defined($params{include_prefix}); $params{include_value} ||= '1'; + $params{filter_prefix} ||= ''; my $filter = $form->parse_html_template('amcvar/search_filter', \%params); my $include = $form->parse_html_template('amcvar/search_include', \%params); diff --git a/templates/webpages/amcvar/search_filter.html b/templates/webpages/amcvar/search_filter.html index db37d08a7..37f722b12 100644 --- a/templates/webpages/amcvar/search_filter.html +++ b/templates/webpages/amcvar/search_filter.html @@ -8,7 +8,7 @@ [%- IF var.type == 'bool' %] - @@ -16,10 +16,10 @@ [%- ELSIF var.type == 'date' %] [% 'from (time)' | $T8 %] - + [% 'to (time)' | $T8 %] - + [%- ELSIF var.type == 'number' %] - @@ -47,10 +47,10 @@ [%- ELSIF var.type == 'customer' %] - + [% ELSIF var.type == 'select' %] - [%- FOREACH option = var.OPTIONS %] @@ -58,7 +58,7 @@ [%- ELSE %] - + [%- END %] -- 2.20.1