summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-09-25 14:49:44 -0700
committerIvan Kohler <ivan@freeside.biz>2016-09-25 14:49:44 -0700
commita6a4b17cbf6359fecde5135727a59b1f7b54cd9f (patch)
tree978da1610c9e6b80bf2c6f2bc41257bbcd3d6779 /httemplate/elements
parent840dbc8beed6098e3b7ae17dc2553a39f5476553 (diff)
scalar cgi param
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/select-time-from_to.html4
-rw-r--r--httemplate/elements/select.html2
2 files changed, 3 insertions, 3 deletions
diff --git a/httemplate/elements/select-time-from_to.html b/httemplate/elements/select-time-from_to.html
index 9d49b7ab8..e41731345 100644
--- a/httemplate/elements/select-time-from_to.html
+++ b/httemplate/elements/select-time-from_to.html
@@ -2,14 +2,14 @@
%opt,
'field' => $opt{'prefix'}. 'stime',
'selected_default' => 480, #8am... configure?
- 'curr_value' => $cgi->param($opt{'prefix'}.'stime'),
+ 'curr_value' => scalar($cgi->param($opt{'prefix'}.'stime')),
&>
-
<& select-time.html,
%opt,
'field' => $opt{'prefix'}. 'etime',
'selected_default' => 1080, #6pm.. configure?
- 'curr_value' => $cgi->param($opt{'prefix'}.'etime'),
+ 'curr_value' => scalar($cgi->param($opt{'prefix'}.'etime')),
&>
<%init>
my %opt = @_;
diff --git a/httemplate/elements/select.html b/httemplate/elements/select.html
index 44602078a..689566e36 100644
--- a/httemplate/elements/select.html
+++ b/httemplate/elements/select.html
@@ -10,7 +10,7 @@
'AR' => 'Arkansas',
},
options => [ 'AL', 'AK', 'AR' ],
- curr_value => $cgi->param('myfield'),
+ curr_value => scalar( $cgi->param('myfield') ),
# recommended
id => 'myid', # DOM id