summaryrefslogtreecommitdiff
path: root/httemplate/search
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-09-25 14:50:18 -0700
committerIvan Kohler <ivan@freeside.biz>2016-09-25 14:50:18 -0700
commit8ab9d14a304aacdefd98e80c143132b10194d8c8 (patch)
tree05b2979c4d30310f20c1fd416327cb69524097de /httemplate/search
parent809b7b5c08393a3cba0f7d8682eff3d72e4f4e32 (diff)
scalar cgi param
Diffstat (limited to 'httemplate/search')
-rw-r--r--httemplate/search/cust_msg.html8
-rw-r--r--httemplate/search/log.html24
2 files changed, 16 insertions, 16 deletions
diff --git a/httemplate/search/cust_msg.html b/httemplate/search/cust_msg.html
index 8976925f7..2e1f75c81 100644
--- a/httemplate/search/cust_msg.html
+++ b/httemplate/search/cust_msg.html
@@ -124,17 +124,17 @@ my $html_init = qq!<FORM ACTION="$p/search/cust_msg.html" METHOD="GET">
<TABLE cellspacing="10">!.
'<TR><TD>From '.
include('/elements/input-date-field.html',
- { 'name' => 'beginning', 'value' => $cgi->param('beginning') }
+ { 'name' => 'beginning', 'value' => scalar($cgi->param('beginning')) }
).
'</TD><TD> To '.
include('/elements/input-date-field.html',
- { 'name' => 'ending', 'value' => ($cgi->param('ending') || ''),
+ { 'name' => 'ending', 'value' => (scalar($cgi->param('ending')) || ''),
'noinit' => 1, }
).
'</TD><TD> 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',
@@ -143,7 +143,7 @@ include('/elements/select.html',
'</TD><TD> 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 d4fed54c9..592e77dc1 100644
--- a/httemplate/search/log.html
+++ b/httemplate/search/log.html
@@ -64,14 +64,14 @@ a:visited {text-decoration: none}
<TR>
<TD>From
<& /elements/input-date-field.html, {
- name => 'beginning',
- value => $cgi->param('beginning'),
+ name => 'beginning',
+ value => scalar($cgi->param('beginning')),
} &>
</TD>
<TD>To
<& /elements/input-date-field.html, {
- name => 'ending',
- value => $cgi->param('ending') || '',
+ name => 'ending',
+ value => scalar($cgi->param('ending')) || '' ),
noinit => 1,
} &>
</TD>
@@ -79,17 +79,17 @@ a:visited {text-decoration: none}
<TR>
<TD>Level
<& /elements/select.html,
- field => 'min_level',
- options => [ 0..7 ],
- labels => { map {$_ => $FS::Log::LEVELS[$_]} 0..7 },
- curr_value => $cgi->param('min_level'),
+ field => 'min_level',
+ options => [ 0..7 ],
+ labels => { map {$_ => $FS::Log::LEVELS[$_]} 0..7 },
+ curr_value => scalar($cgi->param('min_level')),
&>
to
<& /elements/select.html,
- field => 'max_level',
- options => [ 0..7 ],
- labels => { map {$_ => $FS::Log::LEVELS[$_]} 0..7 },
- curr_value => $cgi->param('max_level'),
+ field => 'max_level',
+ options => [ 0..7 ],
+ labels => { map {$_ => $FS::Log::LEVELS[$_]} 0..7 },
+ curr_value => scalar($cgi->param('max_level')),
&>
</TD>
<TD>