From fe58901b811f0ab26e8f93a9563fb93bc98e4c19 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Sun, 25 Sep 2016 14:49:38 -0700 Subject: scalar cgi param --- httemplate/search/cust_msg.html | 8 ++++---- httemplate/search/log.html | 24 ++++++++++++------------ 2 files changed, 16 insertions(+), 16 deletions(-) (limited to 'httemplate/search') diff --git a/httemplate/search/cust_msg.html b/httemplate/search/cust_msg.html index 2bfbd7cb0..33e1815c6 100644 --- a/httemplate/search/cust_msg.html +++ b/httemplate/search/cust_msg.html @@ -126,17 +126,17 @@ my $html_init = qq!
!. ' @@ -80,17 +80,17 @@ a:visited {text-decoration: none}
From '. include('/elements/input-date-field.html', - { 'name' => 'beginning', 'value' => $cgi->param('beginning') } + { 'name' => 'beginning', 'value' => scalar($cgi->param('beginning')) } ). ' To '. include('/elements/input-date-field.html', - { 'name' => 'ending', 'value' => ($cgi->param('ending') || ''), + { 'name' => 'ending', 'value' => (scalar($cgi->param('ending')) || ''), 'noinit' => 1, } ). ' Status '. include('/elements/select.html', 'field' => 'status', - 'curr_value' => $cgi->param('status') || '', + 'curr_value' => scalar($cgi->param('status')) || '', 'options' => [ '', 'failed', 'sent', ], 'labels' => { '' => '(any)', 'failed' => 'failed', @@ -145,7 +145,7 @@ include('/elements/select.html', ' Type '. include('/elements/select.html', 'field' => 'msgtype', - 'curr_value' => $cgi->param('msgtype') || '', + 'curr_value' => scalar($cgi->param('msgtype')) || '', 'options' => [ '', 'invoice', 'receipt', 'admin', 'report' ], 'labels' => { '' => '(any)', 'invoice' => 'Invoices', diff --git a/httemplate/search/log.html b/httemplate/search/log.html index 5b330f899..535b2ca32 100644 --- a/httemplate/search/log.html +++ b/httemplate/search/log.html @@ -65,14 +65,14 @@ a:visited {text-decoration: none}
From <& /elements/input-date-field.html, { - name => 'beginning', - value => $cgi->param('beginning'), + name => 'beginning', + value => scalar($cgi->param('beginning')), } &> To <& /elements/input-date-field.html, { - name => 'ending', - value => $cgi->param('ending') || '', + name => 'ending', + value => scalar($cgi->param('ending')) || '' ), noinit => 1, } &>
Level <& /elements/select.html, - field => 'min_level', - options => [ &FS::Log::levelnums ], - labels => { &FS::Log::levelmap }, - curr_value => $cgi->param('min_level'), + field => 'min_level', + options => [ &FS::Log::levelnums ], + labels => { &FS::Log::levelmap }, + curr_value => scalar($cgi->param('min_level')), &> to <& /elements/select.html, - field => 'max_level', - options => [ &FS::Log::levelnums ], - labels => { &FS::Log::levelmap }, - curr_value => $cgi->param('max_level'), + field => 'max_level', + options => [ &FS::Log::levelnums ], + labels => { &FS::Log::levelmap }, + curr_value => scalar($cgi->param('max_level')), &> -- cgit v1.2.1