diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2016-09-25 14:49:44 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2016-09-25 14:49:44 -0700 |
| commit | a6a4b17cbf6359fecde5135727a59b1f7b54cd9f (patch) | |
| tree | 978da1610c9e6b80bf2c6f2bc41257bbcd3d6779 /httemplate/edit/process/part_event.html | |
| parent | 840dbc8beed6098e3b7ae17dc2553a39f5476553 (diff) | |
scalar cgi param
Diffstat (limited to 'httemplate/edit/process/part_event.html')
| -rw-r--r-- | httemplate/edit/process/part_event.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/httemplate/edit/process/part_event.html b/httemplate/edit/process/part_event.html index 0293af886..6c6249cc1 100644 --- a/httemplate/edit/process/part_event.html +++ b/httemplate/edit/process/part_event.html @@ -81,7 +81,7 @@ 'precheck_callback' => sub { my $cgi = shift; my $action = $cgi->param('action') or return; - my %actionfields = map { $_ =~ /^$action\.(.*)/; $1 => $cgi->param($_) } + my %actionfields = map { $_ =~ /^$action\.(.*)/; $1 => scalar($cgi->param($_)) } grep { /^$action\./ } $cgi->param; if ( exists($actionfields{'reasonnum'}) and length($actionfields{'reasonnum'}) == 0 ) { @@ -99,8 +99,10 @@ next unless $cgi->param($1) eq 'balance_age'; my $errstr = FS::part_event::Condition::balance_age-> - check_options( { age => $cgi->param($param), - age_units => $cgi->param("${param}_units") } ); + check_options( { age => scalar($cgi->param($param)), + age_units => scalar($cgi->param("${param}_units")), + } + ); return $errstr if $errstr; } |
