diff options
author | ivan <ivan> | 2003-07-23 15:36:54 +0000 |
---|---|---|
committer | ivan <ivan> | 2003-07-23 15:36:54 +0000 |
commit | 1dd6907483dae3aab9dc7b112d1b38af9f4a7060 (patch) | |
tree | 969fb2799c6882c886f7550ea2f208524b69e9c1 /httemplate/edit/process/cust_main.cgi | |
parent | b93199089f74afa80138b16c5ede6e4b4fe91442 (diff) |
fix spurious "can't purchase pkgpart" errors
Diffstat (limited to 'httemplate/edit/process/cust_main.cgi')
-rwxr-xr-x | httemplate/edit/process/cust_main.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/edit/process/cust_main.cgi b/httemplate/edit/process/cust_main.cgi index 3700d9b96..818382856 100755 --- a/httemplate/edit/process/cust_main.cgi +++ b/httemplate/edit/process/cust_main.cgi @@ -52,7 +52,7 @@ if ( $new->custnum eq '' ) { if ( $cgi->param('pkgpart_svcpart') ) { my $x = $cgi->param('pkgpart_svcpart'); - $x =~ /^(\d+)_(\d+)$/; + $x =~ /^(\d+)_(\d+)$/ or die "illegal pkgpart_svcpart $x\n"; my($pkgpart, $svcpart) = ($1, $2); #false laziness: copied from FS::cust_pkg::order (which should become a #FS::cust_main method) @@ -70,7 +70,7 @@ if ( $new->custnum eq '' ) { #eslaf # this should wind up in FS::cust_pkg! - $error ||= "Agent ". $new->agentnum. " (type ". $agent->typenum. ") can't". + $error ||= "Agent ". $new->agentnum. " (type ". $agent->typenum. ") can't ". "purchase pkgpart ". $pkgpart #unless $part_pkg{ $pkgpart }; unless $pkgpart_href->{ $pkgpart }; |