diff options
author | ivan <ivan> | 2004-12-23 09:15:16 +0000 |
---|---|---|
committer | ivan <ivan> | 2004-12-23 09:15:16 +0000 |
commit | e9e81be2ffe4c08e52ccd9609838ffddab0ed6f2 (patch) | |
tree | 434d39ca5ce2be55a30d45bbc51367bb2a1e2526 /httemplate/edit | |
parent | 157a14d87965d87219f915d69e6106d731bbd82c (diff) |
fix bug with custom pricing packages when no primary service is selected
Diffstat (limited to 'httemplate/edit')
-rwxr-xr-x | httemplate/edit/process/part_pkg.cgi | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/httemplate/edit/process/part_pkg.cgi b/httemplate/edit/process/part_pkg.cgi index 5ff3e6f17..2d6b34432 100755 --- a/httemplate/edit/process/part_pkg.cgi +++ b/httemplate/edit/process/part_pkg.cgi @@ -30,14 +30,15 @@ my %pkg_svc = map { $_ => $cgi->param("pkg_svc$_") } my $error; my $custnum = ''; if ( $pkgpart ) { - $error = $new->replace( $old, 'pkg_svc' => \%pkg_svc, - 'primary_svc' => $cgi->param('pkg_svc_primary'), + $error = $new->replace( $old, + pkg_svc => \%pkg_svc, + primary_svc => scalar($cgi->param('pkg_svc_primary')), ); } else { - $error = $new->insert( 'pkg_svc' => \%pkg_svc, - 'primary_svc' => $cgi->param('pkg_svc_primary'), - 'cust_pkg' => $cgi->param('pkgnum'), - 'custnum_ref' => \$custnum, + $error = $new->insert( pkg_svc => \%pkg_svc, + primary_svc => scalar($cgi->param('pkg_svc_primary')), + cust_pkg => $cgi->param('pkgnum'), + custnum_ref => \$custnum, ); $pkgpart = $new->pkgpart; } |