diff options
author | jeff <jeff> | 2006-11-16 15:37:42 +0000 |
---|---|---|
committer | jeff <jeff> | 2006-11-16 15:37:42 +0000 |
commit | 2678ace9d79df1eb745f7a592cc0fc354e994504 (patch) | |
tree | 7da3648991604bcb8af5e7a6eb4231a34866c1fd /httemplate | |
parent | 7c1d5f4ce778b4ab56301a042076e7c1dce46152 (diff) |
bug squishing
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/edit/process/part_bill_event.cgi | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/httemplate/edit/process/part_bill_event.cgi b/httemplate/edit/process/part_bill_event.cgi index cedba1e9f..af594f264 100755 --- a/httemplate/edit/process/part_bill_event.cgi +++ b/httemplate/edit/process/part_bill_event.cgi @@ -18,15 +18,6 @@ % $cgi->param('weight', $2); % my $eventcode = $3; % my $plandata = ''; -% while ( $eventcode =~ /%%%(\w+)%%%/ ) { -% my $field = $1; -% my $value = join(', ', $cgi->param($field) ); -% $cgi->param($field, $value); #in case it errors out -% $eventcode =~ s/%%%$field%%%/$value/; -% $plandata .= "$field $value\n"; -% } -% $cgi->param('eventcode', $eventcode); -% $cgi->param('plandata', $plandata); % % my $rnum; % my $rtype; @@ -52,14 +43,25 @@ % my $reason = new FS::reason ({ 'reason' => $reasonm, % 'reason_type' => $rtype, % }); -% $error = $reason->insert or $rnum = $reason->reasonnum; +% $error = $reason->insert; % unless ($error) { +% $rnum = $reason->reasonnum; % $cgi->param("${class}reason", $rnum); % $cgi->param("new${class}reason", ''); % $cgi->param("new${class}reasonT", ''); % } % } % +% while ( $eventcode =~ /%%%(\w+)%%%/ ) { +% my $field = $1; +% my $value = join(', ', $cgi->param($field) ); +% $cgi->param($field, $value); #in case it errors out +% $eventcode =~ s/%%%$field%%%/$value/; +% $plandata .= "$field $value\n"; +% } +% $cgi->param('eventcode', $eventcode); +% $cgi->param('plandata', $plandata); +% % unless($error){ % my $new = new FS::part_bill_event ( { % map { |