summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/part_bill_event.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/edit/process/part_bill_event.cgi')
-rwxr-xr-xhttemplate/edit/process/part_bill_event.cgi5
1 files changed, 2 insertions, 3 deletions
diff --git a/httemplate/edit/process/part_bill_event.cgi b/httemplate/edit/process/part_bill_event.cgi
index 77dcd24..e224bf6 100755
--- a/httemplate/edit/process/part_bill_event.cgi
+++ b/httemplate/edit/process/part_bill_event.cgi
@@ -5,7 +5,7 @@ my $eventpart = $cgi->param('eventpart');
my $old = qsearchs('part_bill_event',{'eventpart'=>$eventpart}) if $eventpart;
#s/days/seconds/
-$cgi->param('seconds', int( $cgi->param('days') * 86400 ) );
+$cgi->param('seconds', $cgi->param('days') * 86400 );
my $error;
if ( ! $cgi->param('plan_weight_eventcode') ) {
@@ -21,8 +21,7 @@ if ( ! $cgi->param('plan_weight_eventcode') ) {
my $plandata = '';
while ( $eventcode =~ /%%%(\w+)%%%/ ) {
my $field = $1;
- my $value = join(', ', $cgi->param($field) );
- $cgi->param($field, $value); #in case it errors out
+ my $value = $cgi->param($field);
$eventcode =~ s/%%%$field%%%/$value/;
$plandata .= "$field $value\n";
}